• 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
iTunes-like behaviour of NSButton with NSAlternateKeyMask
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

iTunes-like behaviour of NSButton with NSAlternateKeyMask


  • Subject: iTunes-like behaviour of NSButton with NSAlternateKeyMask
  • From: "Michael G. Ströck" <email@hidden>
  • Date: Fri, 9 Feb 2007 19:05:14 +0100

Hi,

I've been trying to implement a button that changes its icon and action according to whether the Option key is being held down. There are numerous solutions on the web and in the archives, but all of them seem to be wrong. Unless your application is the currently active one, all of these solutions --which override flagsChanged or sendEvent in some NSResponder subclass-- break.

iTunes and iPhoto keep monitoring the status of the Option key even when they're in the background, and I can't figure out how it's done. Can anybody here on the list give me any pointers?


Best regards, Michael Ströck_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: iTunes-like behaviour of NSButton with NSAlternateKeyMask
      • From: Murat Konar <email@hidden>
    • Re: iTunes-like behaviour of NSButton with NSAlternateKeyMask
      • From: Andreas Mayer <email@hidden>
  • Prev by Date: New columns in NSTableView are overridden by plist
  • Next by Date: Need list of apps that can open file type
  • Previous by thread: Re: New columns in NSTableView are overridden by plist
  • Next by thread: Re: iTunes-like behaviour of NSButton with NSAlternateKeyMask
  • Index(es):
    • Date
    • Thread