Re: Login item not hidden
Re: Login item not hidden
- Subject: Re: Login item not hidden
- From: Jens Alfke <email@hidden>
- Date: Tue, 07 Jun 2011 15:55:50 -0700
On Jun 7, 2011, at 3:46 PM, Leonardo wrote:
> 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?
If you want an app that has no Dock icon at all, but can still show windows when it needs to, you need to mark it as an LSUIElement. Search the developer docs for that keyword and read the info.
> In the applicationDidFinishLaunching method I call
> reply = [NSApp runModalForWindow:aboutWindow];
> an I dismiss the about window with a timer 2 seconds later.
Why run it modally? Why not just show the window with makeKeyAndOrderFront:, and then have the timer dismiss it?
(Also, app splash screens are kind of frowned upon in the HI Guidelines, except in special cases like games. Your app should launch quickly enough that the user can start using it right away, i.e. in a second or two. )
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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