Re: A view to act as a cell, or vice versa
Re: A view to act as a cell, or vice versa
- Subject: Re: A view to act as a cell, or vice versa
- From: Evan Schoenberg <email@hidden>
- Date: Mon, 29 Nov 2004 07:47:25 -0600
Yup, it's been done. There are a couple places this has been
implemented, but the most straightforward and stand-alone I've seen is
here:
http://www.joar.com/code/
One thing to note is that his sample doesn't resize as the parent view
resizes; making that happen (which provides a much more seamless user
experience) is as simple as turning on autosizing in IB or in code for
the view you use.
Hope that helps,
Evan
On Nov 29, 2004, at 3:12 AM, Steven Kramer wrote:
Well, here's another one I just keep running into... I'd like to use a
group of cells as a single cell. To be precise, I'd like to use a
combination of text label/text edit/stepper as the field editor for a
specific table cell. Writing a totally new custom cell is not an
option. And NSView already does everything I need. Now if only I could
somehow put the cells in a custom view, and create an NSCell subclass
that delegates all drawing and mouse events to the custom view, Bob
would be my uncle. Does this approach sound feasible? Has it been
done? Any info or pointers would be much appreciated.
Regards
Steven Kramer
--
email@hidden
http://sprintteam.com/
_______________________________________________
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
_______________________________________________
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