Re: Making a sheet from a view
Re: Making a sheet from a view
- Subject: Re: Making a sheet from a view
- From: Chris Hanson <email@hidden>
- Date: Mon, 1 Sep 2003 18:27:01 -0500
On Monday, September 1, 2003, at 03:11 PM, Sanri Parov wrote:
I've noticed many Cocoa programs have the ability to treat some views
as sheets.
Where can I find docs and helps on how to do this?
What do you mean by "treat some views as sheets"?
Sheets are fairly easy to implement, and are documented in the Cocoa
developer documentation. In particular, see the documentation for the
following AppKit functions to implement simple alert sheets:
NSBeginAlertSheet
NSBeginCriticalAlertSheet
NSBeginInformationalAlertSheet
To implement more complex sheets, see the documentation for the
following NSApplication methods:
-beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo:
-endSheet:
-endSheet:returnCode:
Note that with these three methods, you'll have to use -[NSWindow
orderOut:] to remove the sheet from the screen once it's ended.
Also, there's a Programming Topic on Sheets in the Cocoa developer
documentation installed with the Mac OS X Developer Tools. It's always
a good idea to check out the Programming Topics when trying to figure
out how to use a technique in Cocoa.
-- Chris
--
Chris Hanson, bDistributed.com, Inc. | Email: email@hidden
Custom Mac OS X Development | Phone: +1-847-372-3955
http://bdistributed.com/ | Fax: +1-847-589-3738
http://bdistributed.com/Articles/ | Personal Email: email@hidden
_______________________________________________
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.