Re: Manual Cocoa Binding - Custom Value Transformer
Re: Manual Cocoa Binding - Custom Value Transformer
- Subject: Re: Manual Cocoa Binding - Custom Value Transformer
- From: Brent Gulanowski <email@hidden>
- Date: Sun, 18 Jul 2004 14:09:42 -0400
>
(2) Bind with a specific instance of NSValueTransformer...
>
>
MyCustomValueTransformer *valueTransformer =
>
[[[MyCustomValueTransformer alloc] init] autorelease];
>
NSMutableDictionary *bindingOptions = [NSMutableDictionary dictionary];
>
[bindingOptions setObject: valueTransformer
>
forKey:@"NSValueTransformer"];
>
>
[myControl bind:@"value" toObject:arrayController
>
withKeyPath:@"selection.optionValue" options:bindingOptions];
I'm looking for it, but I can't see how this differ's from Jonathan's
second attempt. As an aside, I thought that -dictionary returns an
immutable dictionary even when sent to NSMutableDictionary? Then
again, the error "attempt to modify immutable" doesn't happen, and
I've heard a rumour that some "immutable" instances are really
mutable....
--
Brent Gulanowski
http://www.boredastronaut.com
_______________________________________________
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.