• 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: how to instantiate MyDocument with file from open panel?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to instantiate MyDocument with file from open panel?


  • Subject: Re: how to instantiate MyDocument with file from open panel?
  • From: mmalc crawford <email@hidden>
  • Date: Thu, 6 Dec 2007 21:42:52 -0800


On Dec 6, 2007, at 9:32 PM, Nathaniel Gottlieb-Graham wrote:

What I need to do next is simply create a new document and put that movie into one of its instance variables (the QTMovieView, I think). To this end, I was trying to manually instantiate a MyDocument subclass in the openPanelDidEnd: selector.

If you need to create a document instance, you typically go through the shared document controller ([NSDocumentController sharedDocumentController]) and then invoke one of the document creation methods. In your situation, it's likely to be makeUntitledDocumentOfType:error:. You can then send that instance whatever messages you want to initialise its contents.

mmalc

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >how to instantiate MyDocument with file from open panel? (From: Nathaniel Gottlieb-Graham <email@hidden>)
 >Re: how to instantiate MyDocument with file from open panel? (From: mmalc crawford <email@hidden>)
 >Re: how to instantiate MyDocument with file from open panel? (From: Nathaniel Gottlieb-Graham <email@hidden>)

  • Prev by Date: Re: how to instantiate MyDocument with file from open panel?
  • Next by Date: Enable Debug Menu for Webkit based cocoa application
  • Previous by thread: Re: how to instantiate MyDocument with file from open panel?
  • Next by thread: Re: how to instantiate MyDocument with file from open panel?
  • Index(es):
    • Date
    • Thread