Re: sheetDidDismiss selector no good from NSBeginAlertSheet
Re: sheetDidDismiss selector no good from NSBeginAlertSheet
- Subject: Re: sheetDidDismiss selector no good from NSBeginAlertSheet
- From: Frederick Cheung <email@hidden>
- Date: Wed, 22 Sep 2004 18:33:33 +0200
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
_______________________________________________
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