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

Re: NSTreeController bound selection issue


  • Subject: Re: NSTreeController bound selection issue
  • From: m <email@hidden>
  • Date: Fri, 25 May 2007 09:57:23 -0700

This thread might be useful.

<http://www.cocoabuilder.com/archive/message/cocoa/2005/5/26/137075>

The upshot is that your binding of selectionIndexPaths is one directional. Changes in your tree controller get relayed to your custom view, but not the other way around. It's worth noting that the GraphicsView in the GraphicBindings example <http://homepage.mac.com/ mmalc/CocoaExamples/controllers.html> calls the controller directly to update the selection.

_murat

On May 25, 2007, at 9:31 AM, Keith Duncan wrote:

what does the code look like?

Along with the relevant code to determine the correct node etc the essential message is


[self setSelectionIndexPaths:[NSArray arrayWithObject:[clickedNode indexPath]]];

where self is the view.

- Keith

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


  • Follow-Ups:
    • Re: NSTreeController bound selection issue
      • From: Keith Duncan <email@hidden>
References: 
 >NSTreeController bound selection issue (From: Keith Duncan <email@hidden>)
 >Re: NSTreeController bound selection issue (From: m <email@hidden>)
 >Re: NSTreeController bound selection issue (From: Keith Duncan <email@hidden>)

  • Prev by Date: GIF rotation/orientation with colorAtX:y:
  • Next by Date: "Live" support for aggregate functions (@min, @max, etc)
  • Previous by thread: Re: NSTreeController bound selection issue
  • Next by thread: Re: NSTreeController bound selection issue
  • Index(es):
    • Date
    • Thread