Re: Alert Sheets hard wired in Interface Builder
Re: Alert Sheets hard wired in Interface Builder
- Subject: Re: Alert Sheets hard wired in Interface Builder
- From: "Kyle Sluder" <email@hidden>
- Date: Tue, 27 May 2008 16:40:50 -0400
On Tue, May 27, 2008 at 4:28 PM, John Love <email@hidden> wrote:
> Instead of calling NSAlertSheet with sender, defaultButton etc., is there a
> way to call a window sheet whose GUI is hard wired in Interface Builder. I
> know that in Applescript Studio, all you have to do is provide a name for
> the sheet you wish to call and it appears. Can the same implementation
> scheme exist in Cocoa/XCODE?
What is this Ecks See Oh Dee Eee you refer to? Is it related to Xcode? :P
You're looking for +[NSApplication
beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo:],
which is appropriately described in the "Custom Sheets" section of the
"Sheet Programming Topics for Cocoa" guide:
http://developer.apple.com/documentation/Cocoa/Conceptual/Sheets/Tasks/UsingCustomSheets.html#//apple_ref/doc/uid/20001290
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden