Re: login items hide box
Re: login items hide box
- Subject: Re: login items hide box
- From: Ron Fleckner <email@hidden>
- Date: Thu, 24 Sep 2009 22:47:56 +1000
On 24/09/2009, at 10:14 PM, Rick C. wrote:
hello,
i have an app that when added to a user's login items with the hide
box checked it still shows its main window when starting up on
leopard. on snow leopard it properly stays hidden. on a personal
note i had this same issue with mail on leopard and i have a feeling
there might be some kind of bug regarding using that hide box on
leopard as some apps seem to follow it and some not. my question is
can it be my code that's causing the issue and i can make some
adjustments to resolve this? but i don't make a specific call to my
main window upon launch (at least not in code) it's only the
checkbox in IB Visible At Launch. thank you for your input,
rick
Hi Rick,
have a look at <http://developer.apple.com/mac/library/samplecode/LoginItemsAE/index.html
> and the Readme file that comes with it.
In part, it says:
"Due to a bug <rdar://problem/4052117> in Mac OS X 10.4 and later (up
to including 10.4.2, which is the latest release at the time this was
written), LoginItemsAE can't handle hidden login items properly. That
is, the value of kLIAEHidden is always false and you can't add a
hidden login item. This bug does not affect earlier systems."
Are you using Apple Events to create your login item? If so, this bug
could be causing your problem. I haven't yet examined the sample code
(just looked at it quickly today), but I think you can get the hidden
part to work using one of the other methods of creating a login item.
Ron
_______________________________________________
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