• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cocoa bindings problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa bindings problem


  • Subject: Re: Cocoa bindings problem
  • From: Kyle Sluder <email@hidden>
  • Date: Fri, 30 Oct 2009 13:34:37 -0700

On Fri, Oct 30, 2009 at 1:26 PM, Sean McBride <email@hidden> wrote:
> 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'.

You could also model this as a transient property.

--Kyle Sluder
_______________________________________________

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

  • Follow-Ups:
    • Re: Cocoa bindings problem
      • From: "Sean McBride" <email@hidden>
References: 
 >Cocoa bindings problem (From: Squ Aire <email@hidden>)
 >RE: Cocoa bindings problem (From: Squ Aire <email@hidden>)
 >Re: Cocoa bindings problem (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: Scripting Bridge running method passing an array
  • Next by Date: Re: Cocoa bindings problem
  • Previous by thread: Re: Cocoa bindings problem
  • Next by thread: Re: Cocoa bindings problem
  • Index(es):
    • Date
    • Thread