• 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: NSTreeController selection (probably a silly mistake) (solved and it was silly)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTreeController selection (probably a silly mistake) (solved and it was silly)


  • Subject: Re: NSTreeController selection (probably a silly mistake) (solved and it was silly)
  • From: Derrek Leute <email@hidden>
  • Date: Tue, 10 Oct 2006 10:38:33 -0400


I did bind the content binding. And I just unbound it and everything is working right!


That leads me to the question of what is the benefit of having a content binding? (I did it because that's how the NSXML Tree Controller example did it) Does it exist so you can bind sort descriptors rather than using the "Create Sort Descriptors" check box on the column binding? (and selection index paths)

Thanks a lot!

--Derrek

On Oct 10, 2006, at 7:21 AM, Felix Franz wrote:

Hi Derrek,

On Oct 10, 2006, at 4:26 AM, Derrek Leute wrote:


I am trying to access the currently selected object in an NSOutlineView who's content is bound to arrangedObjects of an NSTreeController.

did you use the 'content'-binding of the NSOutlineView? You need to bind 'selectionIndexPaths' too.
This is done automatically if you bind to a NSTableColumn. See <http://developer.apple.com/documentation/Cocoa/Reference/ CocoaBindingsRef/BindingsText/NSOutlineView.html#//apple_ref/doc/ uid/NSOutlineView-DontLinkElementID_305> for the documentation. Otherwise the
selection of the NSOutlineView and NSTreeController is not in sync ...



Cheers,


felix


_______________________________________________ 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: 
 >NSTreeController selection (probably a silly mistake) (From: Derrek Leute <email@hidden>)
 >Re: NSTreeController selection (probably a silly mistake) (From: Felix Franz <email@hidden>)

  • Prev by Date: SecKeychainAddGenericPassword err 100013
  • Next by Date: Temporary files
  • Previous by thread: Re: NSTreeController selection (probably a silly mistake)
  • Next by thread: Best practices : use array controller to insert objects into managed object context
  • Index(es):
    • Date
    • Thread