Re: NSIsNilTransformerName exception
Re: NSIsNilTransformerName exception
- Subject: Re: NSIsNilTransformerName exception
- From: James Walker <email@hidden>
- Date: Tue, 30 Mar 2010 13:00:40 -0700
On 3/30/2010 12:36 PM, Lee Ann Rucker wrote:
NSIsNilTransformerName is the name of the variable defining the
transformer name.
NSLog(@"NSIsNilTransformerName = %@", NSIsNilTransformerName);
NSIsNilTransformerName = NSIsNil
Ah, that makes sense, and it works, thanks!
I'm surprised NSIsNil didn't show up in the binding's popup list.
Me too. I'm sure I've seen all the standard value transformers there
before. Now all I see in the transformer list are
NSKeyedUnarchiveFromData and NSUnarchiveFromData.
On Mar 30, 2010, at 12:11 PM, James Walker wrote:
I'm trying to make a button be disabled if an array controller is being
filtered. So in IB I bound the enabled state of the button to the array
controller, with controller key "filterPredicate" and value transformer
"NSIsNilTransformerName". At run time, an exception is thrown, and the
log has a message "Cannot find value transformer with name
NSIsNilTransformerName". That really confuses me, because the docs say
that NSIsNilTransformerName is one of the built-in value transformers.
Clue, please?
--
James W. Walker, Innoventive Software LLC
<http://www.frameforge3d.com/>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden