Re: How to make sure that end of string is visible in NSTextField
Re: How to make sure that end of string is visible in NSTextField
- Subject: Re: How to make sure that end of string is visible in NSTextField
- From: glenn andreas <email@hidden>
- Date: Fri, 18 Nov 2005 10:30:22 -0600
On Nov 18, 2005, at 9:30 AM, Andrei Tchijov wrote:
No good. "scrollRangeToVisible:" is NSText method and NSTextField
does not inherit from it.
On Nov 18, 2005, at 10:20 AM, glenn andreas wrote:
[textField scrollRangeToVisible: NSMakeRange([[textField string]
length], 0)];
That'll teach me for trying to parse email before coffee...
Anyway, I'm not sure that you can easily accomplish this with an
NSTextField (short of subclassing NSTextFieldCell) - I'd consider
switching it to an NSTextView instead.
Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
quadrium | build, mutate, evolve | images, textures, backgrounds, art
_______________________________________________
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