• 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: NSArrayController contentArray and add bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSArrayController contentArray and add bindings


  • Subject: Re: NSArrayController contentArray and add bindings
  • From: mmalcolm crawford <email@hidden>
  • Date: Fri, 22 Jul 2005 03:00:45 -0700


On Jul 22, 2005, at 2:44 AM, email@hidden wrote:

Now I add a master interface for employee entities (a table and two buttons add/remove), BUT I want to display only the employees assigned to the selected department. No problem: I create a NSArrayController with a contentSet as selection.employees [Department Array Controller]. The problem is "How can I implement the Add button so that any new employee is automatically assigned to the selected department ?" In fact, if I press Add, the department relationship is set to nil by default and automatically the new added item is not displayed since it doesn't belong to the selected department.
The problem arises since I don't know how to correctly set the value of the department relationship of the employee entity. Is it possible to do this non programmatically ?



It's not clear why you think the employees are not added to the relationship?


<http://developer.apple.com/documentation/Cocoa/Conceptual/ NSPersistentDocumentTutorial/04_Department/chapter_5_section_4.html> illustrates the same principle using an object rather than an array controller...

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


  • Follow-Ups:
    • Re: NSArrayController contentArray and add bindings
      • From: mmalcolm crawford <email@hidden>
References: 
 >NSArrayController contentArray and add bindings (From: email@hidden)

  • Prev by Date: Reload Data in a Window which contains NSPopUpButton (s), NSTAble, NSText , etc
  • Next by Date: Re: NSArrayController contentArray and add bindings
  • Previous by thread: NSArrayController contentArray and add bindings
  • Next by thread: Re: NSArrayController contentArray and add bindings
  • Index(es):
    • Date
    • Thread