Re: Non-working selector...
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.