• 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 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


  • Follow-Ups:
    • Re: 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: Nathaniel Gottlieb-Graham <email@hidden>
References: 
 >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: Re: How to get the word under the mouse pointer?
  • 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