"No document could be created." panel
"No document could be created." panel
- Subject: "No document could be created." panel
- From: Dave Rosborough <email@hidden>
- Date: Mon, 13 Feb 2006 20:56:05 -0800
Hey all,
I've got a custom NSDocumentController subclass that checks to see if
my app's trial period has expired before creating a new document.
I've overridden:
- (id)openUntitledDocumentAndDisplay:(BOOL)displayDocument error:
(NSError **)outError
- (id)openDocumentWithContentsOfURL:(NSURL *)absoluteURL display:
(BOOL)displayDocument error:(NSError **)outError
and the other associated (now deprecated) methods, returning nil if
the trial has expired.
My problem is that some object, somewhere, is throwing up an NSPanel
with the message "No document could be created.". Does anyone know
how to get that to disappear? I really want it to fail silently, or
at least use an NSPanel of my choosing.
A search of the archives revealed a couple of unanswered questions
and one suggestion that NSDocumentController's newDocument: and
openDocument: are the culprits, but overriding them had no effect (as
I suspected). I can't seem to figure it out using the debugger
(unless I'm just not using it right!).
Anyone have any insight? Am I going to be able to do this by
overriding a method somewhere? Or is there an alternative approach I
should be looking at?
Thanks!
Dave R
_______________________________________________
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