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: Michael Hudson <email@hidden>
- Date: Fri, 24 Oct 2003 14:35:43 +0100
"John C. Daub" <email@hidden> writes:
>
Hello.
>
>
I've got some complex data to display in an NSTableView, so it's been
>
suggested to me to take the route of embedding NSCell's within an NSCell,
>
then putting that "master" NSCell into the NSTableView's column. Generally
>
speaking this works out ok, but I'm hitting some snags.
I had a go at this a week or so back.
>
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.
Cheers,
mwh
--
Gevalia is undrinkable low-octane see-through only slightly
roasted bilge water. Compared to .us coffee it is quite
drinkable. -- Mens Nilsson, asr
_______________________________________________
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.