Re: NSTextField, drawing the text offset to the right in the field
Re: NSTextField, drawing the text offset to the right in the field
- Subject: Re: NSTextField, drawing the text offset to the right in the field
- From: Matt Neuburg <email@hidden>
- Date: Tue, 29 Sep 2009 18:06:55 -0700
- Thread-topic: NSTextField, drawing the text offset to the right in the field
On or about 9/29/09 4:43 PM, thus spake "jon" <email@hidden>:
> is properly using my custom textfield, but the custom textfield doesn't
> appear to be using the custom cell
Then you have to *make* the custom textfield use the custom cell. :) Use
whips and chains if necessary. Actually, I think what I said before may
cover this sufficiently:
> On Sep 28, 2009, at 9:30 PM, Matt Neuburg wrote:
>> What I do is have the textfield replace its cell by a custom cell that
>> implements drawInteriorWithFrame, such as to inset its frame rect as it
>> calls super. m.
As the first part states, an instance of your cell class must *be* this text
field instance's cell. You have to make that happen... m.
--
matt neuburg, phd = email@hidden, http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
Among the 2007 MacTech Top 25, http://tinyurl.com/2rh4pf
AppleScript: the Definitive Guide, 2nd edition
http://www.tidbits.com/matt/default.html#applescriptthings
Take Control of Exploring & Customizing Snow Leopard
http://tinyurl.com/kufyy8
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
TidBITS, Mac news and reviews since 1990, http://www.tidbits.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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