Re: The fieldEditor and a focus ring
Re: The fieldEditor and a focus ring
- Subject: Re: The fieldEditor and a focus ring
- From: Graham Cox <email@hidden>
- Date: Sat, 28 Feb 2009 10:29:53 +1100
On 28/02/2009, at 7:07 AM, Eric Gorr wrote:
If I check the value of focusRingType for the fieldEditor which is
currently handling the text input, I get a value back of
NSFocusRingTypeDefault. But, even if I set the value to
NSFocusRingTypeExterior, no focus ring is drawn.
Is this focus ring something I need to draw myself or is there some
way to get the fieldEditor to draw it?
I could be wrong (check the documentation), but my understanding is
that the field editor isn't responsible for this. The field editor
just works behind the scenes to handle text editing, the output of
which is placed on-screen in the text field you see. All the visual
adornments like the border and focus ring are attributes of the text
field control, not the field editor.
If you are using the field editor with something other than a standard
NSTextField, you are going to have to draw the focus ring yourself but
based on the actual view or part of the view that is visible, not the
field editor.
hth,
--Graham
_______________________________________________
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