Re: modal alert sheets
Re: modal alert sheets
- Subject: Re: modal alert sheets
- From: Martin Weil <email@hidden>
- Date: Mon, 12 Aug 2002 21:53:36 +0200
This might just be a
Jag bug, but is there an easier way to get this modal
alert sheet up?
NSBeginAlertSheet(@"Warning", @"Quit", @"Cancel",
nil, preferencesWindow, self, NULL,
@selector(endAlertSheet: returnCode: contextInfo:),
NULL,
@"Do you really want to quit?\nAll unsaved changes will
be lost.");
Just an example of my own app.
'preferencesWindow' is the window lying behind the sheet.
See Cocoa Developer Documentation > User Interface Elements > Windows
and Panels > Dialog and Special Panels for more Information.
Hope this helps!
Regards,
Martin
--
http://www.mweil.net
_______________________________________________
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.