• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: custom alert panel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >custom alert panel (From: justin webster <email@hidden>)

  • Prev by Date: Re: custom alert panel
  • Next by Date: Re: custom alert panel
  • Previous by thread: Re: custom alert panel
  • Next by thread: Re: custom alert panel
  • Index(es):
    • Date
    • Thread