• 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: New to ObjC/Cocoa - looking to get data from OS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New to ObjC/Cocoa - looking to get data from OS


  • Subject: Re: New to ObjC/Cocoa - looking to get data from OS
  • From: Bill Cheeseman <email@hidden>
  • Date: Mon, 07 Apr 2003 05:19:22 -0400

on 03-04-07 2:07 AM, Nathan Day at email@hidden wrote:

> You could do this as a regular Cocoa application, look in the archives
> for information about hot keys for bringing your app to front in
> response to some key combination. The API for this is carbon but there
> is a Cocoa wrapper for this floating around some where.

The Cocoa wrapper for the Carbon global hot key API is only needed if you're
running pre-Mac OS X 10.2. In 10.2, the Carbon API works directly in Cocoa
without need for special tricks. Sample code from Apple is buried in the
UIElementInspector Cocoa sample code.

My PreFab UI Browser application uses global hot keys, and they are
user-configurable in the Preferences window.
<http://www.prefab.com/uibrowser/>

Other potentially useful APIs for the poster's task are the Accessibility
API and, of course, Apple events (AppleScript) for controlling iChat.

--

Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com

The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: New to ObjC/Cocoa - looking to get data from OS (From: Nathan Day <email@hidden>)

  • Prev by Date: Finding out if a folder is invisible
  • Next by Date: What to do with a NSTimer that has been invalidated ?
  • Previous by thread: Re: New to ObjC/Cocoa - looking to get data from OS
  • Next by thread: Memory management and NSUserDefaults?
  • Index(es):
    • Date
    • Thread