Re: [SOLVED] Re: How to make sure that end of string is visible in NSTextField
Re: [SOLVED] Re: How to make sure that end of string is visible in NSTextField
- Subject: Re: [SOLVED] Re: How to make sure that end of string is visible in NSTextField
- From: Douglas Davidson <email@hidden>
- Date: Fri, 18 Nov 2005 10:27:50 -0800
On Nov 18, 2005, at 9:58 AM, Andrei Tchijov wrote:
[[[ textField window ] fieldEditor: YES forObject: nil ]
scrollRangeToVisible: NSMakeRange([[ textField stringValue ]
length], 0)];
Please use [textField currentEditor] rather than
fieldEditor:forObject:. The fieldEditor:forObject: method is
intended to be used by the control to create or take control of the
shared field editor when it begins editing. What you want is to
obtain a reference to the field editor while the control is editing,
for which you should use currentEditor.
Douglas Davidson
_______________________________________________
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