• 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
Exterior focus rings with custom views
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Exterior focus rings with custom views


  • Subject: Exterior focus rings with custom views
  • From: Josh Anon <email@hidden>
  • Date: Thu, 10 Jun 2004 14:42:32 -0700

Hi all,
I have a custom view in a scroll view, and I'd like it to have a focus ring around it, similar to NSTableView. I initially thought that I'd get this for free, especially with full keyboard access on, but that doesn't seem to be the case.

From the doc, my first thought was just to call setFocusRingType: in awakeFromNib, and I did a [self setFocusRingType:NSFocusRingTypeDefault] in awakeFromNib. No effect. Next thought was that I needed to call setFocusRingType on the scroll view. Still no effect. Then, I found that the exterior focus ring is different from the default type. I tried passing in NSFocusRingTypeExterior to both the custom view and to the scroll view. Nothing. I tried overriding +defaultFocusRing on the view, too, and still nothing. If I do an interior focus ring using the visible bounds, I at least get something, but copy-on-scroll bites me.

Has anyone managed to put an exterior focus ring around a custom view in a scroll view before?

Thanks,
Josh

---
Josh Anon
Studio Tools, Pixar Animation Studios
email@hidden
_______________________________________________
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: Exterior focus rings with custom views
      • From: Tony Royal <email@hidden>
  • Prev by Date: Re: NSDictionary refactoring (was that really a bug at all)
  • Next by Date: Re: mysql objc options
  • Previous by thread: NSZombie refuses to rise from its grave
  • Next by thread: Re: Exterior focus rings with custom views
  • Index(es):
    • Date
    • Thread