• 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: Drawing a NSTextField bezel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawing a NSTextField bezel


  • Subject: Re: Drawing a NSTextField bezel
  • From: Stéphane Sudre <email@hidden>
  • Date: Mon, 27 Sep 2004 08:48:26 +0200


On lundi, septembre 27, 2004, at 08:02 AM, Daniel Jalkut wrote:

Stéphane Sudre wrote:

Is there a better way than using the hidden API _drawThemeBezelWithFrame:inView: which works fine as long as you are dealing with a NSTextFieldCell subclass?

Subclass NSTextFieldCell, override "drawInteriorWithFrame" to do nothing, and ask the subclass to "drawWithFrame." That way, you're taking advantage of public methods with fairly predictable expectations for their behavior.

Ok, but the text will be missing I think. I need both the text and the bezel. I just need the text to be offseted on the right a little bit but still have the bezel around the complete frame of the widget.


_______________________________________________
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


References: 
 >Re: Drawing a NSTextField bezel (From: Daniel Jalkut <email@hidden>)

  • Prev by Date: Re: Drawing a NSTextField bezel
  • Next by Date: Re: Unit testing framework suggestions?
  • Previous by thread: Re: Drawing a NSTextField bezel
  • Next by thread: Cocoa based SIP / VoIP library
  • Index(es):
    • Date
    • Thread