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>
<key>IBOpenObjects</key>
<array>
<integer>216</integer>
<integer>196</integer>
<integer>5</integer>
<integer>144</integer>
<integer>196</integer>
<integer>216</integer>
<integer>5</integer>
</array>
<key>IBSystem Version</key>
<string>9A412</string>

Binary file not shown.

View File

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

View File

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

View File

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

View File

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

View File

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