• 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
avoid AlertPanel in opening a document
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

avoid AlertPanel in opening a document


  • Subject: avoid AlertPanel in opening a document
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Sat, 19 Jul 2008 15:58:28 +0700

In -readFromURL:ofType:error: of a document-based app I make some checks and if something looks suspicious I show an AlertPanel with: "Something strange. (Open anyway) (Do not open)"

If the user clicked on (Do not open) I return NO and set the NSError to nil.

But then another panel comes up with "Document <name> could not be opened. (OK)".
This is kind of silly, as the user just has clicked on (Do not open).


How can this second panel be avoided? Using 10.4.11 Tiger.

Kind regards,

Gerriet.

_______________________________________________

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


  • Follow-Ups:
    • Re: avoid AlertPanel in opening a document
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: substitute class at runtime?
  • Next by Date: Re: Unicode names
  • Previous by thread: Re: setting image for person in address book
  • Next by thread: Re: avoid AlertPanel in opening a document
  • Index(es):
    • Date
    • Thread