NSOutlineView selectedRow error?
NSOutlineView selectedRow error?
- Subject: NSOutlineView selectedRow error?
- From: Scott Harper <email@hidden>
- Date: Sat, 4 Mar 2006 18:09:01 -0700
Hello, I'm making the following call:
NSImage *ti = [[[templateView tableColumnWithIdentifier:@"Image"]
dataCellForRow:[templateView selectedRow]] objectValue];
in my code, which retrieves an image contained in the appropriate
column of the selected row. This seems to work just fine at first,
but I've noticed several problems.
1) When I select an item, then select an item higher up on the table,
it lags about one item selection behind each time. So if I select
item x, then select x-1, it still pulls the image from x. If I then
select x-4, it pulls the image from x-1.
2) If I select an item, then scroll around, then activate the method
to pull the image, it pulls some COMPLETELY unrelated image from the
outline view.
I think this probably has something to do with the fact that I'm
using an NSOutlineView, but I cannot find a method for the outline
view which chooses the currently selected item/row.
Little help?
--Scott
_______________________________________________
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