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 <j...@mooseyard.com> > Data: Tue, 7 Jun 2011 15:21:39 -0700 > A: Leonardo <mac.iphone....@gmail.com> > Cc: <cocoa-dev@lists.apple.com> > 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 (Cocoa-dev@lists.apple.com) 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 arch...@mail-archive.com