• 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
Processing Unselect in NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Processing Unselect in NSOutlineView


  • Subject: Processing Unselect in NSOutlineView
  • From: David Emme <email@hidden>
  • Date: Fri, 10 Mar 2006 08:04:12 -0700

I have an NSOutline view which conceptually contains "directories" and
"files" in those directories, much like Finder's list view.

When a user selects/unselects a directory row, I would like to
select/unselect all children of that row.

I can do the selection operation in delegate method
outlineView:shouldSelectItem:. But how can I be informed when the user
UNselects such a row? I guess I could compare the values of
selectedRowIndexes before and after, but that seems like the hard way.

What's the best way to be informed of the user unselecting a row?

TIA,
-Dave
--
Representative government has broken down. Our politicians represent
not the people who vote for them but the commercial interests who
finance their election campaigns. We have the best politicians that
money can buy.     - Ed Abbey
 _______________________________________________
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: Processing Unselect in NSOutlineView
      • From: Stephane Sudre <email@hidden>
  • Prev by Date: Re: IBoutlets out of scope in c functions?
  • Next by Date: Re: Processing Unselect in NSOutlineView
  • Previous by thread: Re: IBoutlets out of scope in c functions?
  • Next by thread: Re: Processing Unselect in NSOutlineView
  • Index(es):
    • Date
    • Thread