Re: Drawing a NSTextField bezel
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