Re: [gtk-osx-users] Application launching in the background
- From: John Ralls <jralls ceridwen us>
- To: Dirk Hohndel <dirk hohndel org>
- Cc: gtk-osx-users-list gnome org
- Subject: Re: [gtk-osx-users] Application launching in the background
- Date: Sat, 15 Sep 2012 12:25:32 -0700
On Sep 15, 2012, at 12:00 PM, Dirk Hohndel <dirk hohndel org> wrote:
> On September 15, 2012 11:51:46 AM John Ralls <jralls ceridwen us> wrote:
>>
>> >> > When I start my Gtk application it doesn't become the foreground application
>> >> > - the user has to click on it to make it the active application. That's obviously
>> >> > highly undesirable.
>> >> >
>> >> > Can the app make itself the foreground app? Does this require some other
>> >> > magic?
>> >> >
>> >>
>> >> How are you starting your app?
>> >
>> > Right now usually from the command line, but the same happens if I start it from finder
>>
>> Depending on how you launch from the command-line, it can be expected behavior (if you specifically call your launcher script or the executable, but not if you use "open"). That it's happening from Finder suggests that your app bundle might not be set up right. Did you create it with gtk-mac-bundler?
>
> So there is no programmatic way to get the app to the foreground? That's... odd.
What exactly are you looking for here? From what API?
Maybe this is what you have in mind:
https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSApplication_Class/Reference/Reference.html#//apple_ref/occ/instm/NSApplication/activateIgnoringOtherApps:
>
> The bundle is currently hand crafted (I'm using MacPorts, not the jhbuild method). What is required to make this work? Is there documentation that I just didn't find?
You're in the wrong mailing-list, then. This is support for the jhbuild tools.
Yes, there's tons of documentation. Overwhelming tons. You should perhaps start with https://developer.apple.com/library/mac/documentation/CoreFoundation/Conceptual/CFBundles/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]