"Can't create new document" alert unwanted
"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