• 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: 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


  • Subject: Re: Command-click table in background app
  • From: Bill Cheeseman <email@hidden>
  • Date: Wed, 31 May 2006 08:00:27 -0400
  • 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
> 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

  • Follow-Ups:
    • Re: Command-click table in background app
      • From: Shaun Wexler <email@hidden>
References: 
 >Command-click table in background app (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Re: Exposing Methods in a Framework
  • Next by Date: Re: Command-click table in background app
  • Previous by thread: Command-click table in background app
  • Next by thread: Re: Command-click table in background app
  • Index(es):
    • Date
    • Thread