Re: New to ObjC/Cocoa - looking to get data from OS
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.