Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disposing an NSAlert



on 7/30/07 11:35 AM, email@hidden purportedly said:

> 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?

How are you calling the sheet, and how are you "ending" it? There is no
reason for the issue you describe, that I can think of.

Best,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.