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

Non-working selector...


  • Subject: Non-working selector...
  • From: Pete Parks <email@hidden>
  • Date: Mon, 31 Mar 2003 00:31:35 -0800

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 ];

[NSApp runModalForWindow: panel];

[NSApp endSheet: panel];
[panel orderOut: self];
}


-(void) clickedButtonInPanel: (id) sender {
// perform mouse click action
}

Pete Parks
_______________________________________________
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: Stéphane Sudre <email@hidden>
  • Prev by Date: Re: Is there a ready chart plotting view?
  • Next by Date: Re: Is there a ready chart plotting view?
  • Previous by thread: Assignment Types and schemes saving
  • Next by thread: Re: Non-working selector...
  • Index(es):
    • Date
    • Thread