• 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: NSSavePanel with a Sheet, strange callBack definition
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSSavePanel with a Sheet, strange callBack definition


  • Subject: Re: NSSavePanel with a Sheet, strange callBack definition
  • From: Stéphane Sudre <email@hidden>
  • Date: Tue, 12 Jun 2001 11:41:48 +0200

On lundi, juin 11, 2001, at 09:44 PM, Enrique Zamudio wrote:

When it says that the didEndSelector has the following signature, it means that the method you implement as the callback for the panel has to be in that form (savePanelDidEnd:returnCode:contextInfo:). But it doesn't have to be called that way. These callbacks are also valid:

- (void)sheetEnded:(NSWindow *)sheet rc:(int)returnCode
ci:(void *)contextInfo;
- (void)panelClosed:(NSWindow *)w retCode:(int)r context:(void *)ci;

The problem is in fact that there is a bug both in the public NSSavePanel header and in the documentation.

The real CallBack definition template for the NSSavePanel is :

- (void)sheetEnded:(NSSavePanel *)sheet rc:(int)returnCode ci:(void *)contextInfo;


References: 
 >Re: NSSavePanel with a Sheet, strange callBack definition (From: Enrique Zamudio <email@hidden>)

  • Prev by Date: Re: Copy and Paste of rows in a NSTableView
  • Next by Date: Re: Jeff Lamarche: Public Enemy #1
  • Previous by thread: Re: NSSavePanel with a Sheet, strange callBack definition
  • Next by thread: NSBrowser selections
  • Index(es):
    • Date
    • Thread