FROM : Kyle Sluder
DATE : Tue May 27 22:40:50 2008
On Tue, May 27, 2008 at 4:28 PM, John Love <jolove+<email_removed>> 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
DATE : Tue May 27 22:40:50 2008
On Tue, May 27, 2008 at 4:28 PM, John Love <jolove+<email_removed>> 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 mail archive

