Re: NSOutlineView -- How to find the last selected item
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.