summaryrefslogtreecommitdiffstats
path: root/macosx/HBRange.m
diff options
context:
space:
mode:
authorritsuka <[email protected]>2015-02-01 12:30:07 +0000
committerritsuka <[email protected]>2015-02-01 12:30:07 +0000
commit039a1c284f79286e4320ed5af48020fd58876c4e (patch)
tree6f47dd0dcd768f3e2494d3758ff27d34a59ab417 /macosx/HBRange.m
parent17d0a11545ccf18dc167d025deaf47f8198b0710 (diff)
MacGui: fix chapters range auto naming.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6855 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBRange.m')
-rw-r--r--macosx/HBRange.m11
1 files changed, 11 insertions, 0 deletions
diff --git a/macosx/HBRange.m b/macosx/HBRange.m
index bd0e5730c..73e8909cb 100644
--- a/macosx/HBRange.m
+++ b/macosx/HBRange.m
@@ -8,6 +8,8 @@
#import "HBTitle.h"
#import "NSCodingMacro.h"
+NSString *HBRangeChangedNotification = @"HBRangeChangedNotification";
+
@implementation HBRange
#pragma mark - NSCoding
@@ -31,6 +33,11 @@
return self;
}
+- (void)postChangedNotification
+{
+ [[NSNotificationCenter defaultCenter] postNotificationName:HBRangeChangedNotification object:self];
+}
+
- (void)setChapterStart:(int)chapterStart
{
if (chapterStart > self.chapterStop)
@@ -39,6 +46,8 @@
}
_chapterStart = chapterStart;
+
+ [self postChangedNotification];
}
- (void)setChapterStop:(int)chapterStop
@@ -49,6 +58,8 @@
}
_chapterStop = chapterStop;
+
+ [self postChangedNotification];
}
- (NSString *)duration