Re: Focus ring around NSTableView
Re: Focus ring around NSTableView
- Subject: Re: Focus ring around NSTableView
- From: John Blackburn <email@hidden>
- Date: Mon, 25 Mar 2002 14:36:55 -0800
This looks like it first draws the focus ring, then invalidates the
focus ring area. Why doesn't this cause an update loop?
John Blackburn
On Monday, March 25, 2002, at 02:16 PM, Nicholas Riley wrote:
Subclass (or pose as) NSScrollView and add:
- (void)drawRect:(NSRect)rect {
[super drawRect: rect];
if ([[self window] isKeyWindow]) {
NSResponder *resp = [[self window] firstResponder];
if ([resp isKindOfClass: [NSView class]] && [(NSView *)resp
isDescendantOf: self]) { // [sic]
NSSetFocusRingStyle(NSFocusRingOnly);
NSRectFill(rect);
}
}
[self setKeyboardFocusRingNeedsDisplayInRect:rect];
}
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.