Re: Cocoa bindings problem
Re: Cocoa bindings problem
- Subject: Re: Cocoa bindings problem
- From: "Sean McBride" <email@hidden>
- Date: Fri, 30 Oct 2009 16:26:06 -0400
- Organization: Rogue Research Inc.
On 10/30/09 7:01 PM, Squ Aire said:
>Thanks for the tip. However, the value transformer idea did not work.
>Even though it ended up showing exactly the same date (the value
>transformer just strips the time from the date) for each row, selecting
>multiple rows still leaves us with "Multiple values" in the text field.
Instead of a value transformer, in your NSManagedObject subclass add a
new method called 'timelessDate' which returns a modified version of
your 'date' attribute. Then bind your table to 'timelessDate' instead
of 'date'. Also use keyPathsForValuesAffectingValueForKey to indicate
that 'timelessDate' depends on 'date'.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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