• 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: Problem with NSObjectController key path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with NSObjectController key path


  • Subject: Re: Problem with NSObjectController key path
  • From: mmalcolm crawford <email@hidden>
  • Date: Sat, 16 Apr 2005 00:38:37 -0700


On Apr 16, 2005, at 12:07 AM, sravan wrote:

Can we have our own controller key in the key path of the NSObjectController(eg selection), key path like employee.name instead of selection.name.

If I understand correctly what you mean, then in theory yes (you can write code to support it) but in practice you're working against the system...


This will be useful for me to maintain two different type of objects like employee, department and i will specify key paths like employee.name and department.name for TextFields and they should show the names of the current employee and department object's name values.


... I would suggest instead using two object controllers -- one to represent the employee, the other the department.


mmalc

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Problem with NSObjectController key path (From: sravan <email@hidden>)

  • Prev by Date: Re: Generating default values in a bindings controlled
  • Next by Date: #define issues
  • Previous by thread: Problem with NSObjectController key path
  • Next by thread: Re: Generating default values in a bindings controlled
  • Index(es):
    • Date
    • Thread