image
image

Go Back   macosx.com > Design, Media, Programming & Scripting > Software Programming & Web Scripting

Reply
 
LinkBack Thread Tools
  #1  
Old April 6th, 2003, 05:39 PM
Registered User
 
Join Date: Apr 2003
Location: San Francisco, CA
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Steven H. is on a distinguished road
Question Help with OS / OBJ-C integration, please.

Hi,

I'm a moderately well-versed programmer who is taking on Objective C to handle something that annoys me to no end about OSX: no quick way to get between applications.

I know what you're thinking, but what about Command-Tab. Let's admit it, this is no good when you have iTunes, * builder, x11 and 2 chat clients open. talk about inefficient!

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<tab>' and then have iChat's chat box with 'fooman' get the focus.

Sound handy? I think so.

OK. so the question is:

How do I map a key sequence into the OS to automatically flip to an application? In my description above i describe the 'escape sequence' -- that's what I'm after how to program.

I gather that I need to override the keyDown method in my application and listen for my 'escape sequence' combo? does that sound right? I gleaned that from: file:///Developer/Documentation/Cocoa/TasksAndConcepts/ProgrammingTopics/BasicEventHandling/index.html

I've been looking all over the O'reilly OSX books for an example of how to do this, but no luck.

developer.apple.com didn't seem to have any examples either. could someone possibly help me on this one?

Thanks for helping get another OSX app-writer / lover off on the right foot.

Steven
Reply With Quote
  #2  
Old April 6th, 2003, 07:33 PM
Darkshadow's Avatar
wandering shadow
 
Join Date: Jul 2001
Location: DE, USA
Posts: 1,532
Thanks: 0
Thanked 0 Times in 0 Posts
Darkshadow is on a distinguished road
Hmm...yes it would be a keydown event...but you would have to have your application active for it to work. Meaning the escape code wouldn't work in any application but yours.

Maybe if you made it a service, but I'm not 100% on that - I've never even looked at the service stuff at all.
__________________
I am but a lonely shadow,
Doomed forever to roam and wander.
But if you allow me to pause before I must go,
I'll spin you tales of mystery and wonder.


Site: Night Productions
Reply With Quote
  #3  
Old April 6th, 2003, 07:38 PM
Registered User
 
Join Date: Apr 2003
Location: San Francisco, CA
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Steven H. is on a distinguished road
Cool Launching it once doesn't seem like a bad deal...

My plan was to put this application I'm proposing into the Login Items folder so that it would launch on startup of the OS (similar to other service / daemon - like application that I run: e.g. codetek's virtual desktop pager).

Once that was running, then the 'escape sequence' could be issued and the user would be flipped back to my running application. The application, in all liklihood, would consist of a simple text box (floating above the dock as i see it) where you typed, tabbed, and returned.

thanks for your input though.
Reply With Quote
  #4  
Old April 16th, 2003, 04:00 PM
PowerMacX's Avatar
Registered User
 
Join Date: Apr 2002
Location: Buenos Aires, Argentina
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
PowerMacX is on a distinguished road
I think there is an application wich does that already: you type some combo keys and then you start to type the name of the application/document/folder and it autocompletes it and opens it when you press return. I don't remember the name, but you may want to do a search in versiontracker.com
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
iTunes Store integration into my Flash site Urbansory Design & Media 0 October 27th, 2003 10:14 AM
iPod integration pic AJaX Apple News, Rumors & Discussion 9 June 2nd, 2003 11:29 AM
WIN2000 - OS X integration on the serverside wih AD didde Networking & Compatibility 1 November 17th, 2002 02:27 PM
PDF browser integration problem - please help! ropers Mac OS X System & Mac Software 3 May 20th, 2002 07:39 AM
Say it ain't so..(C++ vs. Obj. C) jmmistrot Software Programming & Web Scripting 3 October 11th, 2001 01:06 PM


All times are GMT -5. The time now is 05:37 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC1
Copyright 2000-2010 DigitalCrowd, Inc.