Re: Repositioning an NSTextFieldCell?
Re: Repositioning an NSTextFieldCell?
- Subject: Re: Repositioning an NSTextFieldCell?
- From: Daniel Jalkut <email@hidden>
- Date: Sat, 25 Nov 2006 18:49:55 -0500
I guess I praised the example prematurely - I didn't try it out, but
liked how simple it looked. If it doesn't work right, though... :)
On Nov 25, 2006, at 6:46 PM, Matt Neuburg wrote:
The actually implementation is terrible; it makes a whole slew of
unwarranted assumptions about how high the text is and how many
lines it
might consist of (and even when it's a single line, on my machine
it cuts
off the descenders). Furthermore, if this cell is being used in an
NSTextField that draws its background and you hide and then show
that text
field, much of the field fails to draw itself. However, it does
illustrate
the general principle that I was getting at before: in addition to
editWithFrame and selectWithFrame, it overrides
drawInteriorWithFrame. m.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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