Thread-topic: Command-click table in background app
on 2006-05-31 6:48 AM, Bill Cheeseman at email@hidden wrote:
> (Hmm. Doing a little more reading before clicking the Send button, I see
> that maybe I have to subclass NSScrollView and override its
> -acceptsFirstMouse method to return YES. Testing in the debugger indicates
> that it is off by default for scroll views. Does this ring any bells with
I can't make this work. I've created a subclass of NSScrollView that
overrides -acceptsFirstMouse:, and I've made my subclass the scrollview's
"custom class" using IB. But my subclass's -initWithFrame: and
-acceptsFirstMouse: methods are never called (unless I call the latter
explicitly with an NSLog call on the table view's superview's superview (to
get past the intervening clip view).
Is there some trick to making a table's scrollview use a subclass?
I see that Lorenzo posted the same question a couple of weeks ago about
NSOutlineView and got no response. Ditto for Simon Berneche almost a year
ago. Joe Ante claimed 4 years ago that it works for table views.
(Inevitably, somebody will ask why I want to be able to select a table row
while the app remains in the background (or tell me that I shouldn't do
that), so here's the answer. This if for PreFab UI Browser 2.0. It's a
utility that needs to be able to navigate the accessibility hierarchy of
menus, palettes and other items in a target app that are automatically
hidden if another app (such as UI Browser) comes to the front.)
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
PreFab Software - http://www.prefab.com/scripting.html
The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden