Re: Access instance var from NSValueTransformer
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