• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Focus ring around NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Focus ring around NSTableView
      • From: Nicholas Riley <email@hidden>
References: 
 >Re: Focus ring around NSTableView (From: Nicholas Riley <email@hidden>)

  • Prev by Date: Re: Bundle, Wrappers, whatever
  • Next by Date: Re: FW: How to change path where Cocoa App is runnin?
  • Previous by thread: Re: Focus ring around NSTableView
  • Next by thread: Re: Focus ring around NSTableView
  • Index(es):
    • Date
    • Thread