• 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)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTreeController selection (probably a silly mistake)


  • Subject: Re: NSTreeController selection (probably a silly mistake)
  • From: Felix Franz <email@hidden>
  • Date: Tue, 10 Oct 2006 13:21:43 +0200

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


  • Follow-Ups:
    • Re: NSTreeController selection (probably a silly mistake) (solved and it was silly)
      • From: Derrek Leute <email@hidden>
References: 
 >NSTreeController selection (probably a silly mistake) (From: Derrek Leute <email@hidden>)

  • Prev by Date: Code injection and replace methods at runtime
  • Next by Date: Alternative Circular Slider control
  • Previous by thread: NSTreeController selection (probably a silly mistake)
  • Next by thread: Re: NSTreeController selection (probably a silly mistake) (solved and it was silly)
  • Index(es):
    • Date
    • Thread