• 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: Need click on button in table to NOT activate app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need click on button in table to NOT activate app


  • Subject: Re: Need click on button in table to NOT activate app
  • From: Corbin Dunn <email@hidden>
  • Date: Tue, 20 Jan 2009 11:06:24 -0800


On Jan 20, 2009, at 10:21 AM, Scott Ribe wrote:

Like the subject says, I need a window, with a table, with buttons in each
row of the table--and I need for the user to be able to click on those
buttons while the app is not frontmost and have the app not activate.

You'll probably have to override -canBecomeKeyWindow and tweak what it returns based on where the user clicks in the NSTableView.



Seems I have to make the window a panel, set it to not hide on deactivate,
and use setBecomesKeyOnlyIfNeeded: YES. (Floating panel is not my first
choice, but if it's the only way, that's OK.)


Problem is: a normal-speed click on any of the buttons still activates my
app, but a slow-speed (click, hold, see button highlight, release) does not.
Any way around this?

I'm unsure what you are asking. Any way around the normal-speed activating, or the slow-speed non-activating? The latter is a bug in window activation for NSView's that use shouldDelayWindowOrderingForEvent: and return YES. You are welcome to log a bug for this issue.


thanks,

corbin



(Yes, it's a somewhat demented user interface. I'm trying to help a user
move data from my program into another. The other program is not scriptable
and has no option to import data--copy & paste is the only way. The other
program CHANGES ITS ACTIVE WINDOW AND KEYBOARD FOCUS every time it is
activated, so the only way to copy & paste from my program is to do so
without my program ever being activated.)



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Need click on button in table to NOT activate app
      • From: Scott Ribe <email@hidden>
References: 
 >Need click on button in table to NOT activate app (From: Scott Ribe <email@hidden>)

  • Prev by Date: Re: Getting iPod icon, was Getting the network Machine Icon
  • Next by Date: Re: Getting iPod icon, was Getting the network Machine Icon
  • Previous by thread: Re: Need click on button in table to NOT activate app
  • Next by thread: Re: Need click on button in table to NOT activate app
  • Index(es):
    • Date
    • Thread