• 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: Disposing an NSAlert
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disposing an NSAlert


  • Subject: Re: Disposing an NSAlert
  • From: Gerd Knops <email@hidden>
  • Date: Mon, 30 Jul 2007 12:52:42 -0500


On Jul 30, 2007, at 12:35 PM, Steve Israelson wrote:

I have an app that puts up an NSAlert asking the user to insert a certain CD-Rom.
I am displaying this as a sheet.
I also detect when dics are inserted and when the correct one is found, I order out the sheet.
I have read in the docs that you should NOT do this:
"Note that you should be careful not to call orderOut: on the sheet from elsewhere in your program before the didEndSelector method is invoked."


I can see NO other way to get rid of the alert sheet. There are no other calls to do so.
Is there any way I can do this, or should I just make my own panel and display it?

I think what they are trying to say is that you must end an alert sheet by calling 'endSheet:' or 'endSheet:returnCode:' to make sure the modal session is properly terminated.


Gerd


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Disposing an NSAlert (From: Steve Israelson <email@hidden>)

  • Prev by Date: Disposing an NSAlert
  • Next by Date: Mixing Static and Dynamic Librararies, Multiple Definitions of Symbol, Two-Level Namespace
  • Previous by thread: Disposing an NSAlert
  • Next by thread: Re: Disposing an NSAlert
  • Index(es):
    • Date
    • Thread