• 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
NSPopUpButton - aligning to top vertically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSPopUpButton - aligning to top vertically


  • Subject: NSPopUpButton - aligning to top vertically
  • From: Keith Blount <email@hidden>
  • Date: Tue, 28 Feb 2006 15:03:41 -0800 (PST)

Hi,

NSPopUpButton aligns its text and image, by default,
to the centre of its cell. Is there any easy way to
change this so that it is aligned to the text? I have
an outline view in which variable row heights are
allowed (using Tiger's -outlineView:heightOfRowByItem:
delegate method), and it looks very ugly with the
popup buttons aligned to the centre when text is
aligned to the top.

I am guessing that I will need to subclass
NSPopUpButtonCell to achieve this (in particular,
-drawWithFrame:inControlView:), but so far my attempts
have been very limited in their success.

Has anybody do something similar, or know how to do
this?

Many thanks in advance for any suggestions.

All the best,
Keith

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.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

  • Prev by Date: Re: Problems with NSGraphicsContext
  • Next by Date: NSCalendar bug with adding to pre-1919 dates?
  • Previous by thread: fast window movement and animation
  • Next by thread: NSCalendar bug with adding to pre-1919 dates?
  • Index(es):
    • Date
    • Thread