• 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 One-To-Many Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSArrayController One-To-Many Question


  • Subject: Re: NSArrayController One-To-Many Question
  • From: Scott Anguish <email@hidden>
  • Date: Thu, 23 Sep 2004 17:15:24 -0400

If I understand correctly what you want to do, you'll want to create a binding to using the NSArrayController's contentArrayForMultipleSelection

http://developer.apple.com/documentation/Cocoa/Reference/ CocoaBindingsRef/BindingsText/NSArrayController.html

This binding will provide an alternate array content when multiple items are selected... 

you may also need to look into the Array Operators (See the Key-Value Coding docs for those)




On Sep 23, 2004, at 9:57 AM, Peter Schmidt wrote:

I have two Model classes (e.g. ClassA and ClassB) in a one-to-many-relationship, whose contents in two tables are represented using NSArrayController. Now I want to implement that when selecting two or more tablerows from ClassA ALL "Subobjects" of ClassB is displayed. How do I make that?
_______________________________________________
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 One-To-Many Question
      • From: Peter Schmidt <email@hidden>
References: 
 >NSArrayController One-To-Many Question (From: Peter Schmidt <email@hidden>)

  • Prev by Date: Re: Safari-like View Change
  • Next by Date: Add duplicate menu items
  • Previous by thread: NSArrayController One-To-Many Question
  • Next by thread: Re: NSArrayController One-To-Many Question
  • Index(es):
    • Date
    • Thread