Re: custom alert panel
Re: custom alert panel
- Subject: Re: custom alert panel
- From: Daniel Todd Currie <email@hidden>
- Date: Mon, 26 Apr 2004 00:58:00 -0700
I think what you want is a modal window...
Set your window to run modally like this:
[NSApp runModalForWindow:myWindow];
Then, place the following line in the IBAction method(s) that are used
to dismiss the panel:
[NSApp stopModal];
Hope this helps.
-- Daniel Currie
On 2004 Apr 26, at 00:36, justin webster wrote:
I am trying to implement an alert panel which has input objects other
than the standard buttons in NSAlert (eg. text input, stepper).
I have created a separate nib which I load with a NSWindowController
but...
I want the application to pause and wait for the result of the user
input as it does with an NSAlert.
I guess I need to subclass NSAlert or apply this 'pausing and
continuing' to my code somehow.
I'm not sure how to do this and I'm going round in circles.
sorry if i'm missing something simple
_______________________________________________
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.
_______________________________________________
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.