Only remove specific notifications (duh!)

This commit is contained in:
Matthias Neeracher 2007-04-19 18:23:33 +00:00
parent 1839222754
commit 08a756e0ab
7 changed files with 11 additions and 8 deletions

View File

@ -8,10 +8,10 @@
<string>460.0</string> <string>460.0</string>
<key>IBOpenObjects</key> <key>IBOpenObjects</key>
<array> <array>
<integer>216</integer>
<integer>196</integer>
<integer>5</integer>
<integer>144</integer> <integer>144</integer>
<integer>196</integer>
<integer>216</integer>
<integer>5</integer>
</array> </array>
<key>IBSystem Version</key> <key>IBSystem Version</key>
<string>9A412</string> <string>9A412</string>

Binary file not shown.

View File

@ -472,10 +472,12 @@
[self willChangeValueForKey:@"songKey"]; [self willChangeValueForKey:@"songKey"];
[self willChangeValueForKey:@"songTime"]; [self willChangeValueForKey:@"songTime"];
[self willChangeValueForKey:@"songDivisions"]; [self willChangeValueForKey:@"songDivisions"];
[self willChangeValueForKey:@"songGroove"];
song->swap(*[savedSong song]); song->swap(*[savedSong song]);
[self didChangeValueForKey:@"songKey"]; [self didChangeValueForKey:@"songKey"];
[self didChangeValueForKey:@"songTime"]; [self didChangeValueForKey:@"songTime"];
[self didChangeValueForKey:@"songDivisions"]; [self didChangeValueForKey:@"songDivisions"];
[self didChangeValueForKey:@"songGroove"];
[self didChangeSong]; [self didChangeSong];
} }

View File

@ -23,7 +23,7 @@
[owner addObserver:self forKeyPath:key [owner addObserver:self forKeyPath:key
options:NSKeyValueObservingOptionOld|NSKeyValueObservingOptionNew options:NSKeyValueObservingOptionOld|NSKeyValueObservingOptionNew
context:[keysAndNames objectForKey:key]]; context:[keysAndNames objectForKey:key]];
return self; return self;
} }

View File

@ -48,7 +48,8 @@
- (void)mmaDone:(NSNotification *)notification { - (void)mmaDone:(NSNotification *)notification {
[[NSNotificationCenter defaultCenter] removeObserver: self]; [[NSNotificationCenter defaultCenter] removeObserver: self
name:NSTaskDidTerminateNotification object:[notification object]];
int status = [[notification object] terminationStatus]; int status = [[notification object] terminationStatus];
if (!status) { if (!status) {
; ;

View File

@ -51,7 +51,8 @@
- (void)pdfDone:(NSNotification *)notification { - (void)pdfDone:(NSNotification *)notification {
[[NSNotificationCenter defaultCenter] removeObserver: self]; [[NSNotificationCenter defaultCenter] removeObserver: self
name:NSTaskDidTerminateNotification object:[notification object]];
int status = [[notification object] terminationStatus]; int status = [[notification object] terminationStatus];
if (!status) { if (!status) {
; ;

View File

@ -943,8 +943,7 @@ static int8_t sSharpAcc[] = {
removeIndex = 11; removeIndex = 11;
if (removeIndex >= 0) if (removeIndex >= 0)
[fGrooveMenu removeItemAtIndex:removeIndex]; [fGrooveMenu removeItemAtIndex:removeIndex];
[[[fGrooveMenu menu] insertItemWithTitle:groove action:@selector(selectGroove:) [fGrooveMenu insertItemWithTitle:groove atIndex:2];
keyEquivalent:@"" atIndex:2] setTarget:self];
[fGrooveMenu selectItemAtIndex:2]; [fGrooveMenu selectItemAtIndex:2];
NSArray * grooves = [fGrooveMenu itemTitles]; NSArray * grooves = [fGrooveMenu itemTitles];
grooves = [grooves subarrayWithRange:NSMakeRange(2, [grooves count]-2)]; grooves = [grooves subarrayWithRange:NSMakeRange(2, [grooves count]-2)];