Re: NSValueTransformer subclass doesn't recognise copyWithZone. So?
Re: NSValueTransformer subclass doesn't recognise copyWithZone. So?
- Subject: Re: NSValueTransformer subclass doesn't recognise copyWithZone. So?
- From: Fritz Anderson <email@hidden>
- Date: Thu, 6 May 2004 10:18:12 -0500
The NSValueTransformerName key in the binding options dictionary takes
an NSString for the registered name of the transformer, not an instance
of the transformer itself. That's probably the source of the attempted
copy.
-- F
On 6 May 2004, at 6:06 AM, John Lombardo wrote:
When trying to use my NSValueTransformer subclass I get the following
error:
*** -[BBStringToNumberTransformer copyWithZone:]: selector not
recognized
...
if ([[[recordArray lastObject] objectForKey:key]
isEqualToString:@"int4"])
[bindingOptions setObject:[NSValueTransformer
valueTransformerForName:@"StringToNumberTransformer"]
forKey:@"NSValueTransformerName"];
[[lookupTable tableColumnWithIdentifier:key]
bind:@"value"
toObject: recordController
withKeyPath:[NSString stringWithFormat:@"arrangedObjects.%@", key]
options:bindingOptions];
--
Fritz Anderson
Consulting Programmer
http://resume.manoverboard.org/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.