Re: Open OtherApp just behind MyApp

2009-02-05 Thread Ken Thomases
On Feb 5, 2009, at 2:31 AM, Yang Meyer wrote: Thanks for pointing out the potential cause. I read up on Obj-C trampoline methods/objects (pretty cool, actually!) and understand the basic idea, but honestly I'm not seeing the connection to my problem. Why and how would such a trampoline obje

Re: Open OtherApp just behind MyApp

2009-02-05 Thread Yang Meyer
Ken, I want to open another application (say, Safari) in the "layer" just behind my application. "Solution" 2: [ws launchApplication:@"Safari"]; // opens Safari in front [NSApp activateIgnoringOtherApps:YES]; // pushes my app in front, effectively right above Safari Problem with

Re: Open OtherApp just behind MyApp

2009-02-04 Thread Ken Thomases
On Feb 4, 2009, at 10:08 AM, Sean McBride wrote: On 2/4/09 3:02 PM, Yang Meyer said: I want to open another application (say, Safari) in the "layer" just behind my application. Have you looked at using Launch Servires? See LSLaunchURLSpec() and LSLaunchFlags. I don't think that's going to

Re: Open OtherApp just behind MyApp

2009-02-04 Thread Sean McBride
On 2/4/09 3:02 PM, Yang Meyer said: >I want to open another application (say, Safari) in the "layer" just >behind my application. Have you looked at using Launch Servires? See LSLaunchURLSpec() and LSLaunchFlags. -- Sean McBride, B. E

Re: Open OtherApp just behind MyApp

2009-02-04 Thread Ken Thomases
On Feb 4, 2009, at 8:02 AM, Yang Meyer wrote: I want to open another application (say, Safari) in the "layer" just behind my application. "Solution" 2: [ws launchApplication:@"Safari"]; // opens Safari in front [NSApp activateIgnoringOtherApps:YES]; // pushes my app in front, effec

Open OtherApp just behind MyApp

2009-02-04 Thread Yang Meyer
Hi, I want to open another application (say, Safari) in the "layer" just behind my application. I've researched quite a bit now, but the two "solutions" I have found so far do not do exactly what I want. "Solution" 1: NSWorkspace * ws = [NSWorkspace sharedWorkspace]; [ws l