How to implement an open dialog in a sheet and process its output?
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