• 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
How to implement an open dialog in a sheet and process its output?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to implement an open dialog in a sheet and process its output?


  • Subject: How to implement an open dialog in a sheet and process its output?
  • From: Nathaniel Gottlieb-Graham <email@hidden>
  • Date: Mon, 12 Nov 2007 01:44:31 -0500

Now, I'm pretty new to cocoa, so please have patience with me, but I'm having a heck of a time figuring something out. I have what seems to me to be a very simple task, yet I'm struggling with it. Here it is:

I have an NSDocument-based application, and I want a certain button to, when clicked, display an "open" dialog sheet that only accepts QuickTime movies and then passes the movie the user has chosen into a QTMovieView in the active window. It's primarily the sheet that's giving me trouble; I know this sounds stupid, but I need help simply creating it in response to some user action. Is there any easy code to simply stick in and tweak slightly that implements the modal sheet open dialog that I'm looking for?

My NSDocument subclass has an instance variable wired up to the QTMovieView, but I'm having extreme difficulty getting a movie into it. Once the user selects a movie, will I just dump it into that instance variable, or is there more that's required?

Again, I apologize for my ignorance. I've been wrestling with this stuff for hours and I feel really stupid.



---------------------------------
Nathaniel Gottlieb-Graham
email@hidden
techpaladin.com
_______________________________________________

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 implement an open dialog in a sheet and process its output?
      • From: Ron Fleckner <email@hidden>
  • Prev by Date: Re: Crash Reporter for Cocoa Application
  • Next by Date: Re: Notification when switching Spaces?
  • Previous by thread: Re: A window that moves on the active space
  • Next by thread: Re: How to implement an open dialog in a sheet and process its output?
  • Index(es):
    • Date
    • Thread