Re: Bindings and object-pointer keys
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