NSTable and custom NSCell issues
NSTable and custom NSCell issues
- Subject: NSTable and custom NSCell issues
- From: Steve Israelson <email@hidden>
- Date: Fri, 23 Mar 2007 16:55:20 -0700
I have an NSTableView that shows a list of items very similar to the
album list view in iTunes.
So each item / NSCell displays a list of sub items, like a song list.
The user should be able to click on ONE of those sub items and have
is select.
The problem as I understand it is that the NSTableView is responsible
for maintaining the selection state of its contents.
Since I need to know the selected sub-item for each custom cell, I
will need to subclass NSTableView and its mouse tracking to save off
not only the selected row, but the selected sub-item within that row.
I have been looking at the NSTableView source code from GNUStep to
see how they handle the mouse click loop.
Before I embark on a hopeless task, has anyone done this before?
Is there any sample code that shows this?
Is this even the right way to go? And NO, a table view inside a
table view is NOT an option, and NO using an NSOutline view won't
work either.
Help me Obi-Wan, you're my only hope....
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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