Exterior focus rings with custom views
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.