• 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
NSTextFieldCell and vertical alignment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextFieldCell and vertical alignment


  • Subject: NSTextFieldCell and vertical alignment
  • From: David Rogers <email@hidden>
  • Date: Fri, 10 Mar 2006 23:45:26 -0600

I've done some research and I think I know the solution but I just wanted to get a definitive answer.

My NSTextFieldCells are a bit tall(on purpose, in case of multi-line entries), I'd like the single line entries to be centered vertically within the cell. Is subclassing NSTextFieldCell and overriding - drawInteriorWithFram:inView the best/appropriate/only way to do this?

Thanks!

Dave Rogers
_______________________________________________
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


  • Follow-Ups:
    • Re: NSTextFieldCell and vertical alignment
      • From: Shaun Wexler <email@hidden>
  • Prev by Date: Re: Attempting to draw upon a CGLayer upon a NSView
  • Next by Date: Re: Attempting to draw upon a CGLayer upon a NSView
  • Previous by thread: Re: NSPredicate and NSMetadataQuery
  • Next by thread: Re: NSTextFieldCell and vertical alignment
  • Index(es):
    • Date
    • Thread