• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: My own listbox
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >My own listbox (From: "Vitaly Ovchinnikov" <email@hidden>)
 >Re: My own listbox (From: Boris Remizov <email@hidden>)
 >Re: My own listbox (From: "Vitaly Ovchinnikov" <email@hidden>)

  • Prev by Date: Re: My own listbox
  • Next by Date: Re: My own listbox
  • Previous by thread: Re: My own listbox
  • Next by thread: Re: My own listbox
  • Index(es):
    • Date
    • Thread