• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Login item support for Panther, Tiger and Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Login item support for Panther, Tiger and Leopard


  • Subject: Re: Login item support for Panther, Tiger and Leopard
  • From: Jerry Krinock <email@hidden>
  • Date: Fri, 8 Feb 2008 23:22:22 -0800


On 2008 Jan, 31, at 8:51, Sean McBride wrote:

In 10.5, the best way is to use the APIs in LaunchServices/ LSSharedFileList.h.

The only documentation for LSSharedFileList seems to be in its header file, and doesn't say much [1]. So, I wrote a class with three class methods, to query, add, and remove a Login Item defined as an file URL (NSURL).


In so doing, I found what I believe are two bugs in LSSharedFileList:

(a) The "hidden" parameter always reads and writes NO. It's "stuck off".
I'm using the property named kLSSharedFileListItemHidden. It's
the only property name that makes sense for this. However, I vaguely
remember seeing trouble setting 'hidden' using the old Tiger and Panther
methods also. Does anyone remember what the issue was?
(b) Documentation for LSSharedFileListInsertItemURL() says to release
the returned item when done with it. This is odd because
that name does not qualify under the "Create Rule" and also,
if I do release the returned item, it crashes.


Before I post it, I was wondering if anyone else has used LSSharedFileList yet and can explain these issues.

Jerry

[1] Like this lovely snippet....

 *  LSSharedFileListItemRemove()
 *
 *  Summary:
 *    Remove item from shared list.
 *
 *  Discussion:
 *    Removes item from shared list.
 *


_______________________________________________

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


  • Prev by Date: Garbage Collection in commandline applications
  • Next by Date: Re: NSPopupButtonCell indentations
  • Previous by thread: Re: Login item support for Panther, Tiger and Leopard
  • Next by thread: Re: Fwd: Re: Login item support for Panther, Tiger and Leopard
  • Index(es):
    • Date
    • Thread