• 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: Squ Aire <email@hidden>
  • Date: Sat, 31 Oct 2009 16:09:32 +0000
  • Importance: Normal

Thanks, why didn't I think of that? Sounds obvious once known :)
Thanks also for the transient property tip, will keep it at the back of my head for future use. In this case however I will go with the method as it is more suitable in my particular case.


> >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'.

_________________________________________________________________
Windows Live: Keep your friends up to date with what you do online.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_1:092010_______________________________________________

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

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: Core Data Managed Object with Custom Data Caches
  • Next by Date: Re: Core Data Managed Object with Custom Data Caches
  • Previous by thread: Re: Cocoa bindings problem
  • Next by thread: [iphone] in app store - remembering a purchase
  • Index(es):
    • Date
    • Thread