Re: Trouble with sheets...
Re: Trouble with sheets...
- Subject: Re: Trouble with sheets...
- From: Sherm Pendley <email@hidden>
- Date: Sat, 17 Jun 2006 21:24:19 -0400
On Jun 17, 2006, at 8:06 PM, Bruce Beerbower wrote:
[NSApp beginSheet:thePanel
modalForWindow:mainWindow
modalDelegate:self // I think this might be the problem. What
should it be?
didEndSelector:nil
contextInfo:NULL];
A question in a code comment - sneaky! :-)
To answer that question: The modal delegate is the object to which
the didEnd selector will be sent. It's usually the same controller
that opened the sheet, but that's not a hard-n-fast requirement.
After a quick review of the conceptual docs for sheets, I don't see
anything that indicates that the didEnd selector might be optional -
passing nil could be the problem.
Have a look at:
<http://developer.apple.com/documentation/Cocoa/Conceptual/Sheets/
index.html>
sherm--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org
_______________________________________________
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