On Sat, Aug 2, 2008 at 8:40 PM, Vitaly Ovchinnikov <[EMAIL PROTECTED]> 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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]