• 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: Nathan Day <email@hidden>
  • Date: Mon, 7 Apr 2003 15:37:51 +0930

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.

On Monday, April 7, 2003, at 12:43 PM, Steven Harms wrote:

Hi All,

I am new to ObjC and am finding it a bit of fresh air from my usual Perl-focused occupation.

One thing that I've not covered in the O'Reilly dog books is notions of integration between
OS-type activities and the application. The examples, be they "Hello World" or Currency
Converter, seem to focus exclusively on 'standalone' application that don't get data from the
OS or affect the OS / Window Manager in any way.

In the interest of brevity my need is this. I would like to have my application be launched
and then wait. I would like to issue an escape sequence (some non-reserved keybinding)
that would shift the 'focus' to that application, which would pop up a textbox for receiving input.

This fits into a larger goal, but I want to keep it brief.

So my questions are:

- Should this be an application or should i look to running this as a service?
- How can I affect the keyboard shortcuts (can i bind them arbitrarily?)
- Are there any examples of Aqua-as-interface interpreting events that I can refer to?

I have included my extended programming goal below if you feel you need more context.

Thanks for any help in advance!

Steven


:: Verbose Explanation of Goal ::

I came from Linux land where my favorite WM was ion. It was a full-creen, anti-mouse window manager that had a really great idea in it: you hit an escape sequence (mappable as you see fit) and you are given a command line. You type the name of the appliation and can use TAB to complete the match once you have enough unique characters (a la bash).

Example: (escape sequence) [type]i c *tab* [autocomplete] iChat *enter*

And viola! In ichat. I would like to add the suffix of "/" so that I could do the preceeding, then hit 'foom' and then have iChat's chat box with 'fooman' get the focus.
_______________________________________________
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.

Nathan Day
http://homepage.mac.com/nathan_day/
_______________________________________________
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.

  • Follow-Ups:
    • Re: New to ObjC/Cocoa - looking to get data from OS
      • From: Bill Cheeseman <email@hidden>
References: 
 >New to ObjC/Cocoa - looking to get data from OS (From: Steven Harms <email@hidden>)

  • Prev by Date: Re: Notifications or singletons?
  • Next by Date: workaround for broken numlock support?
  • Previous by thread: New to ObjC/Cocoa - looking to get data from OS
  • Next by thread: Re: New to ObjC/Cocoa - looking to get data from OS
  • Index(es):
    • Date
    • Thread