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 19:06:41 -0800
On Dec 6, 2007, at 11:59 AM, Nathaniel Gottlieb-Graham wrote:
I've run an open panel and called the openPanelDidEnd: selector, and
I have the file the user has chosen in an array. Now I'm a little
stuck because I want to do something with that file; I want a new
MyDocument instance to be created and load the data from the file
into a QTMovieView I've set up in IB.
Are you using the document architecture (i.e. are you subclassing
NSDocument)?
If so, it's not clear why you are trying to run your own open panel or
instantiate your own document instance. Typically you simply let the
framework take care of all the details for you -- see <http://developer.apple.com/documentation/Cocoa/Conceptual/Documents/Tasks/ImplementingDocApp.html
>.
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