• 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: Bindings and object-pointer keys
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bindings and object-pointer keys


  • Subject: Re: Bindings and object-pointer keys
  • From: Seth Pellegrino <email@hidden>
  • Date: Fri, 4 Jan 2008 09:07:37 -0500


On Dec 31, 2007, at 3:18 AM, Ken Thomases wrote:

There may be a more elegant or correct solution, but the following should work:

Create a "synthetic" property on the Job class, let's call it salaryData. Use setKeys:triggerChangeNotificationsForDependentKey: to make the salaryData property dependent on the salary key (and any other keys/properties on which SalaryCell bases its display and behavior). Then, bind your salary column to the salaryData property.
<snip>
I hope that helps.

Indeed, that helped a great deal. I do see your point about a salary value-object as well, and I'll definitely spend some time thinking about that path.


Thank you again, sir, your solution works very well.

Also, thanks are due to Mr. mmalc crawford, your information about Core Data is very helpful. However, I think I'm going to take your advice and spend some more time with Cocoa before I actually use Core Data.

Seth Pellegrino
_______________________________________________

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


  • Prev by Date: Re: How to get free bytes and total bytes for volumes
  • Next by Date: Set focus on NSView in an NSMenuItem
  • Previous by thread: Re: How to get free bytes and total bytes for volumes
  • Next by thread: Set focus on NSView in an NSMenuItem
  • Index(es):
    • Date
    • Thread