Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Command-click table in background app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 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
> anyone?)

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
http://www.quecheesoftware.com

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

References: 
 >Command-click table in background app (From: Bill Cheeseman <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.