Clarify the name of the sheet callback method, and declare it in our “PRIVATE” category, fixing the last BeepHammer-specific warning.
authorPeter Hosey <hg@boredzo.org>
Mon Nov 30 19:56:42 2009 -0800 (2009-11-30)
changeset 455953cb25bcdfea
parent 4558 02d3d0481b6b
child 4560 fba266e16574
Clarify the name of the sheet callback method, and declare it in our “PRIVATE” category, fixing the last BeepHammer-specific warning.
Developer Tools/BeepHammer/BeepController.m
     1.1 --- a/Developer Tools/BeepHammer/BeepController.m	Mon Nov 30 19:53:37 2009 -0800
     1.2 +++ b/Developer Tools/BeepHammer/BeepController.m	Mon Nov 30 19:56:42 2009 -0800
     1.3 @@ -11,6 +11,8 @@
     1.4  - (void)tableViewSelectionDidChange:(NSNotification *)aNotification;
     1.5  
     1.6  - (void)notificationsDidChange;
     1.7 +
     1.8 +- (void) notificationEditorDidEnd:(NSWindow *)sheet returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo;
     1.9  @end
    1.10  
    1.11  @implementation BeepController
    1.12 @@ -95,7 +97,7 @@
    1.13  	[NSApp beginSheet:notificationPanel
    1.14  	   modalForWindow:mainWindow
    1.15  		modalDelegate:self
    1.16 -	   didEndSelector:@selector(sheetDidEnd:returnCode:contextInfo:)
    1.17 +	   didEndSelector:@selector(notificationEditorDidEnd:returnCode:contextInfo:)
    1.18  		  contextInfo:nil];
    1.19  }
    1.20  
    1.21 @@ -124,7 +126,7 @@
    1.22  		[NSApp beginSheet:notificationPanel
    1.23  		   modalForWindow:mainWindow
    1.24  			modalDelegate:self
    1.25 -		   didEndSelector:@selector(sheetDidEnd:returnCode:contextInfo:)
    1.26 +		   didEndSelector:@selector(notificationEditorDidEnd:returnCode:contextInfo:)
    1.27  			  contextInfo:[[NSNumber alloc] initWithInteger:index]];
    1.28  	}
    1.29  }
    1.30 @@ -225,7 +227,7 @@
    1.31  	[NSApp endSheet:[sender window] returnCode:NSCancelButton];
    1.32  }
    1.33  
    1.34 -- (void) sheetDidEnd:(NSWindow *)sheet returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo {
    1.35 +- (void) notificationEditorDidEnd:(NSWindow *)sheet returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo {
    1.36  	if (returnCode == NSOKButton) {
    1.37  		NSNumber *defaultValue = [NSNumber numberWithBool:[notificationDefault  state] == NSOnState];
    1.38  		NSNumber *stickyValue  = [NSNumber numberWithBool:[notificationSticky   state] == NSOnState];