On 2009 Sep 24, at 05:47, Ron Fleckner wrote:

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.

Well, actually the same bug appears to affect not only LoginItemsAE, but also if you use the more "modern" method (requires 10.5), LSSharedFileList. I reported this bug to Apple on 2008-04-30. It appears that Apple has marked this bug as "closed", but they never added any details.


Problem ID 5901742

30-Apr-2008 02:48 PM Jerry Krinock:

* SUMMARY

The 'hidden' attribute for Login Items in the LSSharedList API has a disconnect with the reality. In more detail, when reading a Login Item, the 'hidden' attribute is read as 0, even if it is in fact '1', unless the 'hidden' attribute has been set by the LSSharedList API. In that case, it doesn't really set, but when you read it back with the API, it says that it is set, even though in fact it is not.

* STEPS TO REPRODUCE

Build and run the attached project. Follow the prompts shown in the the console.

* EXPECTED RESULTS In all tests, the values read and written using the LSSharedList API and shown in the log should agree with what is shown in the System Preferences application.

* ACTUAL RESULTS

In Test #1, items which have the "Hide" box checked in System Preferences read from the API hidden=0. In Test #5, although the API set Safari to "Hide" and the API read it back as hidden=1, if you look in System Preferences you see that the "Hide" box is not checked.

'SSLoginItems.zip' was successfully uploaded


_______________________________________________

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

Reply via email to