Re: sheetDidDismiss selector no good from NSBeginAlertSheet
Re: sheetDidDismiss selector no good from NSBeginAlertSheet
- Subject: Re: sheetDidDismiss selector no good from NSBeginAlertSheet
- From: Andrew Taylor <email@hidden>
- Date: Wed, 22 Sep 2004 12:51:26 -0400
At 6:33 PM +0200 9/22/04, Frederick Cheung wrote:
On 22 Sep 2004, at 18:23, Andrew Taylor wrote:
So what should be the prototype for the didDismiss selector if it
is not what the documentation and header file says?
Or is there something else I am doing wrong?
- (void)itsgone:(NSWindow *)sheet returnCode:(int)returnCode
contextInfo:(void *)contextInfo
{
NSLog(@"called itsgone");
}
- (void)displayURLFailedError
{
NSString *message = [NSString stringWithFormat:@"this is a message"];
// SEL mySelector = @selector(itsgone:);
// [self displayErrorMessage:message dismiss:mySelector];
[self displayErrorMessage:message dismiss:@selector(itsgone:)];
}
You are telling it to use the method itsgone: but the actual name of
your method is itsgone:returnCode:contextInfo:
Fred
my C / C++ roots are showing.
Thanks!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden