Try [NSApp activateIgnoringOtherApps:YES];

HTH.

On Fri, Sep 19, 2008 at 12:28 PM, Memo Akten <[EMAIL PROTECTED]> wrote:
> I want to create a very simple little app that launches a window at startup,
> and then runs in the background with no dock and menu.
>
> I've created the app as a standard cocoa app, extending NSApplication
>  overriding init (set delegate to self) and applicationDidFinishLaunching to
> setup a timer (and applicationWillTerminate to cleanup) - I've also set
> 'Application is agent' to true in Info.plist.
>
> When I start the app from Xcode, my window opens, when I close it the window
> dissappears and my app carries on running in the background as expected.
>
> But when i run the app from finder, my window appears at the very back of
> all other windows so isn't visible, how can I fix this?
> _______________________________________________
>
> Cocoa-dev mailing list ([email protected])
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/slasktrattenator%40gmail.com
>
> This email sent to [EMAIL PROTECTED]
>
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to