Re: NSDocument New ?
Re: NSDocument New ?
- Subject: Re: NSDocument New ?
- From: Sherm Pendley <email@hidden>
- Date: Sun, 3 Oct 2004 03:47:31 -0400
On Oct 2, 2004, at 4:32 PM, Matt Jarjoura wrote:
Is there a direct way to know when an NSDocument is a new document vs.
an opened document?
From Apple's "Document-Based Applications" doc:
"The init method is directly invoked when a new document is created;
the initWithContentsOfFile:ofType: method is directly invoked when a
document is opened. Therefore if you have any initializations that
apply only to documents that are opened, you should override
initWithContentsOfFile:ofType:; if you have general initializations,
you should, of course, override init. In both cases, be sure to invoke
super’s implementation as the first thing."
sherm--
_______________________________________________
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