• 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
"Can't create new document" alert unwanted
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"Can't create new document" alert unwanted


  • Subject: "Can't create new document" alert unwanted
  • From: Kaspar Fischer <email@hidden>
  • Date: Thu, 23 Dec 2004 17:52:43 +0100

Dear all,

In a newly created Cocoa project I have added code to the
-(id)init method of MyDocument. It is suggested there that I
should

  // Add your subclass-specific initialization here.
  // If an error occurs here, send a [self release] message
  // and return nil.

So I did. I ask the user some details, and if she aborts,
I return nil. Then however, an alert appears saying

   NEW
   Can’t create new document.

Clearly, when the user aborts, there is no need to show
such a beast anymore. How can I get rid of it?

Thanks a lot,
Kaspar

P.S. This question has been asked before, see

  http://lists.apple.com/archives/cocoa-dev/2002/Dec/msg00294.html

but nobody seems to have answered.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: "Can't create new document" alert unwanted
      • From: "Louis C. Sacha" <email@hidden>
  • Prev by Date: Re: Examining the Call Stack
  • Next by Date: Re: Why is indexOfObjectIdenticalTo: *far* faster than indexOfObject: ?
  • Previous by thread: Re: Why is indexOfObjectIdenticalTo: *far* faster than indexOfObject: ?
  • Next by thread: Re: "Can't create new document" alert unwanted
  • Index(es):
    • Date
    • Thread