Re: Switching between background <-> foreground app type at run-time
Re: Switching between background <-> foreground app type at run-time
- Subject: Re: Switching between background <-> foreground app type at run-time
- From: Eric Schlegel <email@hidden>
- Date: Wed, 26 Sep 2007 11:14:20 -0700
On Sep 26, 2007, at 11:06 AM, vance wrote:
How do I switch between BackgroundOnly (has no doc icon and menu)
and Foreground (has dock icon and menu) application at runtime, both
ways?
You can't.
3. Have 2 different applications: One with LSBackgroundOnly set to
1, that creates the status item and Another one without
Problem: They will be 2 different processes and a lot of
interprocess communication needs to be used between. Not very sure
the proper IPC mechanism to be used here. Plus I have to maintain 2
different binaries instead of one for a very simple tool I am
creating.
This is your only option. As you noted, you can use
TransformProcessType to go from background-only to foreground-capable,
but there's no way to go back.
-eric
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden