Re: Access instance var from NSValueTransformer
Re: Access instance var from NSValueTransformer
- Subject: Re: Access instance var from NSValueTransformer
- From: Todd Freese <email@hidden>
- Date: Mon, 15 Nov 2004 12:14:23 -0600
> 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.
The Event class has an NSMutableDictionary that holds different
TimeCodeNumber objects.
I got the binding to work without the NSValueTransformer to display the
TimeCodeNumber data. However, I am not sure how the binding system is going
to create a new TimeCodeNumber object and access the instance vars from the
Event class to init it correctly.
Todd
_______________________________________________
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