• 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
Re: NSDocument New ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >NSDocument New ? (From: Matt Jarjoura <email@hidden>)

  • Prev by Date: rtfd example
  • Next by Date: Re: NSImage gets distorted when scrolled
  • Previous by thread: Re: NSDocument New ?
  • Next by thread: Re: Any news about Cocoa Java ?
  • Index(es):
    • Date
    • Thread