Re: NSButtonCell's within NSCell's within NSTableView's and mouse tracking
Re: NSButtonCell's within NSCell's within NSTableView's and mouse tracking
- Subject: Re: NSButtonCell's within NSCell's within NSTableView's and mouse tracking
- From: "John C. Daub" <email@hidden>
- Date: Fri, 24 Oct 2003 09:19:49 -0500
on 10/24/03 8:35 AM, Michael Hudson at email@hidden wrote:
>
> So all of this makes me wonder... is this the way to go? Should I be
>
> faking things out with NSCell's embedded within an NSCell? Or would
>
> it be better to actually try to put real NSView's and NSButton's
>
> into the NSTableView? Can that be done? If so, what are the pros and
>
> cons of such an approach?
>
>
What I ended up doing was creating a view that looked like I wanted
>
each row to look in IB, and inserting enough of these into a custom
>
view in a scroll view (with flipped coordinates, to keep me sane).
>
>
Seemed to work, but I don't know if it's the best solution. I had a
>
fairly small number of rows, I'd guess my solution would use a lot of
>
memory if you had hundreds or thousands of rows.
*nod* That seems like a fair approach. I don't know if I could do that tho.
The biggest reason is that for now I'm using an NSTableView, but in a little
bit I need to convert it to an NSOutlineView because I will need to show
hierarchical data. To have to manage all that hierarchy myself... I don't
know if that'd cause me even more pain. :-)
Still, thanx for the suggestion. I'll keep it in mind.
--
John C. Daub }:-)>=
<
mailto:email@hidden> <
http://www.hsoi.com/>
"We're only gonna die from our own arrogance." - Bad Religion
_______________________________________________
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.