Re: how to instantiate MyDocument with file from open panel?
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