Access instance var from NSValueTransformer
Access instance var from NSValueTransformer
- Subject: Access instance var from NSValueTransformer
- From: Todd Freese <email@hidden>
- Date: Sun, 14 Nov 2004 14:28:15 -0600
Title: Access instance var from NSValueTransformer
In my reverseTransformedValue method for an NSValueTransformer, I need to access an instance variable. This is because the object I need to return needs to have it’s state set correctly based on the type of document. (This is a doc-style app)
Here is my code:
- (id)reverseTransformedValue:(id)value
{
if (value == nil) return nil;
return [TimeCodeNumber initWithString:value base:@”29.97” isNonDrop:YES];
}
In this example, 29.97 and YES are hard coded. I need to retrieve these values from an instance var for MyDocument.
Thanks,
Todd Freese
The Filmworkers Club - Chicago
_______________________________________________
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