• 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 do I pass a model class information in the MyDocument subclass?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: [RESOLVED] Re: Curious about copyWithZone message from NSArrayController in "GC required" project
  • Next by Date: Re: NSShadow changes on 10.5.2?
  • Previous by thread: Re: [RESOLVED] Re: Curious about copyWithZone message from NSArrayController in "GC required" project
  • Next by thread: Looking for a developer as passionate as me (or who can otherwise do a quality job cloning) about Moire
  • Index(es):
    • Date
    • Thread