Re: Login item not hidden
Re: Login item not hidden
- Subject: Re: Login item not hidden
- From: Leonardo <email@hidden>
- Date: Wed, 08 Jun 2011 00:46:11 +0200
- Thread-topic: Login item not hidden
No I don't do that.
In the applicationDidFinishLaunching method I call
reply = [NSApp runModalForWindow:aboutWindow];
an I dismiss the about window with a timer 2 seconds later.
But even if I comment this line of code, at login, I see the Finder active,
so my app is not active, but the window of my app is clearly visible.
And I can click on it, activate my app and Quit. Which is not what I really
want.
So maybe I didn't understand a point. I explain:
I see in the login item list an Apple application called iTunesHelper.
This is marked as hidden. And when I login I don't see it at all. I cannot
activate nor quit it.
So, how to make my app behaving exactly like that?
Anyway, if I double click on the application iTunesHelper it doesn't get
launched or visible. Strange...
Regards
-- Leonardo
> Da: Jens Alfke <email@hidden>
> Data: Tue, 7 Jun 2011 15:21:39 -0700
> A: Leonardo <email@hidden>
> Cc: <email@hidden>
> Oggetto: Re: Login item not hidden
>
>
> On Jun 7, 2011, at 3:13 PM, Leonardo wrote:
>
>> I add my app to the login items list. I mark the hidden check-box.
>> I re-login, my app gets properly launched but it clearly appears on the
>> screen, not hidden at all. What do I miss?
>
> Are you making any call at launch time that would activate the app?
> For example, calling [NSApp activateIgnoringOtherApps:YES] in your
> -applicationDidFinishLaunching: method. If so, take this out.
>
> Jens
_______________________________________________
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