Re: text caret color
Re: text caret color
- Subject: Re: text caret color
- From: Andrew Merenbach <email@hidden>
- Date: Thu, 17 Nov 2005 21:12:40 -0800
The field editor is technically an NSText instance, though, is it
not? Doesn't that mean that it's technically a 'bad idea' to expect
in all circumstances the more-commonly-used subclass, NSTextView?
I infer this by examining the method:
- (NSText *)fieldEditor:(BOOL)createFlag forObject:(id)anObject;
Best,
Andrew
On 17 Nov 2005, at 17:44, Douglas Davidson wrote:
On Nov 17, 2005, at 10:54 AM, I. Savant wrote:
NSTextView has a -setInsertionPointColor: method. That doesn't
help with NSTextField, but with a few configuration changes, an
NSTextView should work much the same in most any situation.
NSTextField uses a field editor, which will be an NSTextView, to
handle its editing. You can obtain the field editor from the
textfield via the -currentEditor method. The question of when to
manipulate the field editor depends a bit on what you are doing--
whether you are subclassing NSTextField, for example, or acting as
its delegate, or something else. Also note that the field editor
is shared with other controls in the same window.
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:
40ucla.edu
This email sent to email@hidden
_______________________________________________
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