• 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: NSOutlineView -- How to find the last selected item
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOutlineView -- How to find the last selected item


  • Subject: Re: NSOutlineView -- How to find the last selected item
  • From: Scott Anguish <email@hidden>
  • Date: Wed, 30 Jul 2003 00:10:15 -0400

That is a bit more confusing than it really needs to be... No reason to subclass here.

look at NSOutlineView's delegate methods.. specifically.

outlineViewSelectionDidChange:
outlineViewSelectionIsChanging:
selectionShouldChangeInOutlineView:

If you implement - (BOOL)selectionShouldChangeInOutlineView:(NSOutlineView *)outlineView then you can know when the change is going to happen, grab the data in the text view and store it with the selected object, and then approve the change.

Then implement outlineViewSelectionDidChange: and update the text view with the newly selected data.

<http://developer.apple.com/documentation/Cocoa/Reference/ ApplicationKit/ObjC_classic/Classes/NSOutlineView.html>


On Tuesday, July 29, 2003, at 7:09 PM, Andreas Mayer wrote:

Am Mittwoch, 30.07.03 um 00:39 Uhr schrieb Daniel Howard:

If this does make any sense to anyone, and you think you can help me in one
way or the other,

Subclass the text view and let it know it's source. Whenever the text view is to be updated with a new source object, it can save back the changes to the last one.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • While on the subject of: NSOutlineView
      • From: April Gendill <email@hidden>
References: 
 >Re: NSOutlineView -- How to find the last selected item (From: Andreas Mayer <email@hidden>)

  • Prev by Date: An error occurring early in runtime (Jaguar)
  • Next by Date: Re: (no subject)
  • Previous by thread: Re: NSOutlineView -- How to find the last selected item
  • Next by thread: While on the subject of: NSOutlineView
  • Index(es):
    • Date
    • Thread