• 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: Non-working selector...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Non-working selector...


  • Subject: Re: Non-working selector...
  • From: Stéphane Sudre <email@hidden>
  • Date: Mon, 31 Mar 2003 11:10:02 +0200

On Monday, March 31, 2003, at 10:31 AM, Pete Parks wrote:

What am I doing wrong here? I'm trying to use a selector that will be a
callback for my NSPanel that I have turned into a Sheet for my Main
window. Is there something special about using the didEndSelector?



- (void)showUpdateDialog: (NSWindow *)window panelPtr: (id) panel {
if (! panel)
[NSBundle loadNibNamed: nibString owner: self];

[NSApp beginSheet: panel
modalForWindow: window
modalDelegate: nil
didEndSelector: @selector(clickedButtonInPanel:
)
contextInfo: nil ];

Your selector is not of the correct kind.

As described in the documentation of beginSheet:

- (void)sheetDidEnd:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo;
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Follow-Ups:
    • Re: Non-working selector...
      • From: Sherm Pendley <email@hidden>
References: 
 >Non-working selector... (From: Pete Parks <email@hidden>)

  • Prev by Date: Re: Is there a ready chart plotting view?
  • Next by Date: Calling Carbon Bundle
  • Previous by thread: Non-working selector...
  • Next by thread: Re: Non-working selector...
  • Index(es):
    • Date
    • Thread