• 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
Difficulty binding an NSArrayController to an NSTreeController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Difficulty binding an NSArrayController to an NSTreeController


  • Subject: Difficulty binding an NSArrayController to an NSTreeController
  • From: Rick Mann <email@hidden>
  • Date: Sat, 2 Jan 2010 03:09:56 -0800

I've got a Core Data model with a Group entity and Part entity. Each Part belongs to a Group, and Groups can belong to Groups. The NSTreeController and NSOutlineView work fine to display the Group hierarchy, but I can't seem to get the NSArrayController to bind to the tree controller's selection (there's an NSCollectionView backed by the NSArrayController).

If I don't try to bind the NSArrayController, but just have it get all Parts in the context, it works fine (that is, the NSCollectionView shows entries for the parts in the MOC).

Does anyone know how to properly bind the NSArrayController's content to the selected Groups' parts (the relationship on Group is called "parts", and returns an NSSet*).

Thanks!

--
Rick

_______________________________________________

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: Custom NSWindow drawing
  • Next by Date: Re: Setting the Line Height/ Line Spacing in an NSTextView.
  • Previous by thread: Re: NSBezierPath linewidth not correct
  • Next by thread: Make NSWindow immovable by dragging bottom bar
  • Index(es):
    • Date
    • Thread