Re: My own listbox
Re: My own listbox
- Subject: Re: My own listbox
- From: Phil <email@hidden>
- Date: Sat, 2 Aug 2008 21:00:32 +1200
On Sat, Aug 2, 2008 at 8:40 PM, Vitaly Ovchinnikov
<email@hidden> wrote:
> The problem is that my control will work like listbox, but don't
> exactly. Actually I need to draw every row myself. And these rows will
> have some padding and many graphics stuff inside. And they will have
> adjustable height... And so on.
> I don't think that it is possible to do this with standard controls. Am I wrong?
>
You can get an NSTableView (NSTableColumn) or NSOutlineView to use a
custom NSCell subclass for each of the rows in your list box. An
NSOutlineView is probably easiest to use for this because it only
exposes a single column.
Apple has some sample code that may help you with this:
<http://developer.apple.com/samplecode/Clock_Control/>
<http://developer.apple.com/samplecode/SourceView/>
Phil
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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