• 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
TreeController and "selection" Binding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

TreeController and "selection" Binding


  • Subject: TreeController and "selection" Binding
  • From: Michael de Haan <email@hidden>
  • Date: Thu, 11 Feb 2016 13:26:37 -0800

I have what I assume is a standard setup.   A treeController managing an Outline View.  A textView acts as a source for a regex Search. All works as expected. The resulting matches are displayed in the outline view.

As I select a row in the outline view, I highlight the matched text in the original source.

Currently, I obtain the “selection” of the treeController by implementing and outlet to the controller, and using the “selectionIndexPaths” binding to update a local variable which holds the selected range information. From then, another function implements the highlight. It works, but it seems awfully klunky.

Ideally, I would like to bind from IB the selection of the TreeController to the local variable, but I cannot find a way to do this. Is this possible?

Thanks.
_______________________________________________

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


  • Follow-Ups:
    • Re: TreeController and "selection" Binding
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Full-text indexing on iOS
  • Next by Date: Re: Full-text indexing on iOS
  • Previous by thread: Re: Full-text indexing on iOS
  • Next by thread: Re: TreeController and "selection" Binding
  • Index(es):
    • Date
    • Thread