Modeless panel from NSGetAlertPanel
Modeless panel from NSGetAlertPanel
- Subject: Modeless panel from NSGetAlertPanel
- From: Dan Bernstein <email@hidden>
- Date: Sat, 2 Oct 2004 23:16:29 +0200
I need to display the same alert sometimes as a sheet and sometimes as
a modeless panel. I thought it would be nice if I could do both using
NSGetAlertPanel, so that I don't have to create a nib for it and so
on. Then the sheet case is straightforward using -[NSApplication
beginSheet:...], but how can I use the same panel as a modeless panel?
The buttons' target is an NSAlert (in 10.3, I don't know what it is in
10.2) which I don't even own.
Is there a clever, yet clean way to accomplish this? Any other
solution short of creating my own nib for this?
Thanks in advance,
-- Dan
_______________________________________________
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