Re: The fieldEditor and a focus ring

2009-03-03 Thread Eric Gorr
On Mar 2, 2009, at 6:19 PM, Graham Cox wrote: On 03/03/2009, at 2:30 AM, Eric Gorr wrote: [self lockFocus]; [NSGraphicsContext saveGraphicsState]; NSRect focusRingBounds = [self bounds]; NSSetFocusRingStyle( NSFocusRingOnly ); NSBezierPath *path = [NSBezierPath

Re: The fieldEditor and a focus ring

2009-03-02 Thread Eric Gorr
On Feb 27, 2009, at 6:29 PM, Graham Cox wrote: 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

Re: The fieldEditor and a focus ring

2009-03-02 Thread Kirk Swenson
On Mar 2, 2009, at 7:42 AM, cocoa-dev-requ...@lists.apple.com wrote: On Feb 27, 2009, at 6:29 PM, Graham Cox wrote: On 28/02/2009, at 7:07 AM, Eric Gorr wrote: Is this focus ring something I need to draw myself or is there some way to get the fieldEditor to draw it? If you are using the

Re: The fieldEditor and a focus ring

2009-03-02 Thread Graham Cox
On 03/03/2009, at 2:30 AM, Eric Gorr wrote: [self lockFocus]; [NSGraphicsContext saveGraphicsState]; NSRect focusRingBounds = [self bounds]; NSSetFocusRingStyle( NSFocusRingOnly ); NSBezierPath *path = [NSBezierPath bezierPathWithRect:focusRingBounds]; [path setClip]; [path fill];

The fieldEditor and a focus ring

2009-02-27 Thread Eric Gorr
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

Re: The fieldEditor and a focus ring

2009-02-27 Thread Graham Cox
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