How do I pass a model class information in the MyDocument subclass?
How do I pass a model class information in the MyDocument subclass?
- Subject: How do I pass a model class information in the MyDocument subclass?
- From: Nathaniel Gottlieb-Graham <email@hidden>
- Date: Thu, 14 Feb 2008 20:00:18 -0500
Hello all,
When an instance of one of my model classes is initialized by an
NSArrayController in response to user action, I need it to know the
current time of a movie in my MyDocument subclass. Unfortunately, I
can't seem to be able to reference the QTMovie whose time I need, I
think because it's in the MyDocument subclass. Is there a way to
address the movie from within a model class, or is that impossible/a
bad idea?
My other idea was to use a custom initWithTime: method for the model
class in question, but how would I get that method called instead of
the regular init one? Is this something I'd do in my
NSArrayController, or somewhere else?
I'm a big novice when it comes to this stuff, so I apologize in
advance if these are dumb questions.
Nathaniel
_______________________________________________
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