• 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: Access instance var from NSValueTransformer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Access instance var from NSValueTransformer


  • Subject: Re: Access instance var from NSValueTransformer
  • From: mmalcolm crawford <email@hidden>
  • Date: Mon, 15 Nov 2004 11:12:10 -0800


On Nov 15, 2004, at 10:14 AM, Todd Freese wrote:

If you're currently binding, say, to timeCodeNumber, you could create a
new pair of accessors, -timeCodeNumberWithString, and
setTimeCodeNumberWithStringForDocument:, that encapsulate the value
transforms.
The one problem I have is that the instance vars I need to access in order
to create a new TimeCodeNumber are not in the TimeCodeNumber class. They are
in the class that is creating the TimeCodeNumber instance called Event.


I'm sorry if I wasn't clear, or if we're talking at crossed purposes...

My suggestion was to implement these accessors in the MyDocument class. From your original:

In this example, 29.97 and YES are hard coded. I need to retrieve these values from an instance var for MyDocument.

I assumed that you would be able to retrieve all necessary information from that?

Does that make sense, and satisfy the requirements?

mmalc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Access instance var from NSValueTransformer
      • From: Todd Freese <email@hidden>
References: 
 >Re: Access instance var from NSValueTransformer (From: Todd Freese <email@hidden>)

  • Prev by Date: I am experiencing a major math error
  • Next by Date: Tiger NDA mailing list
  • Previous by thread: Re: Access instance var from NSValueTransformer
  • Next by thread: Re: Access instance var from NSValueTransformer
  • Index(es):
    • Date
    • Thread