Re: Alert Sheets hard wired in Interface Builder
Re: Alert Sheets hard wired in Interface Builder
- Subject: Re: Alert Sheets hard wired in Interface Builder
- From: "John Love" <email@hidden>
- Date: Sat, 31 May 2008 12:40:17 -0400
More NSLog data:
2008-05-31 12:33:51.001 Calculate Medical[1926:10b] NSWindow does not
support utility styleMask 0x10
2008-05-31 12:33:51.023 Calculate Medical[1926:10b] NSWindow does not
support utility styleMask 0x10
2008-05-31 12:33:55.434 Calculate Medical[1926:10b] *** -[NSAlert
endErrorSheet:code:info:]: unrecognized selector sent to instance 0x16ed20
2008-05-31 12:33:55.438 Calculate Medical[1926:10b] *** -[NSAlert
endErrorSheet:code:info:]: unrecognized selector sent to instance 0x16ed20
I put back:
didEndSelector:@selector(endCalculateSheet:code:info:) into:
[calculateSheet beginSheetModalForWindow:docWindow modalDelegate:nil
didEndSelector:@selector(endCalculateSheet:code:info:)
contextInfo:docWindow];
and here's the selector method:
- (void) endCalculateSheet:(NSWindow*)theSheet code:(int)returnCode
info:(void*)contextInfo {
if (returnCode == NSAlertDefaultReturn) { // "Good Bye!"
NSLog(@"Default Button clicked"); // does not log this entry
}
[theSheet close];
}
John Love
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden