• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: sheetDidDismiss selector no good from NSBeginAlertSheet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >sheetDidDismiss selector no good from NSBeginAlertSheet (From: Andrew Taylor <email@hidden>)
 >Re: sheetDidDismiss selector no good from NSBeginAlertSheet (From: Frederick Cheung <email@hidden>)

  • Prev by Date: Initialize NSArray with C array?
  • Next by Date: Howto find the Outlet name Of a drag destination? OR Howto update model with Drag and Drop in the cocoa dialect?
  • Previous by thread: Re: sheetDidDismiss selector no good from NSBeginAlertSheet
  • Next by thread: Re: sheetDidDismiss selector no good from NSBeginAlertSheet
  • Index(es):
    • Date
    • Thread