• 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
Problem with LSSharedFileListInsertItemURL() usage. (API in LaunchServices/LSSharedFileList.h)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with LSSharedFileListInsertItemURL() usage. (API in LaunchServices/LSSharedFileList.h)


  • Subject: Problem with LSSharedFileListInsertItemURL() usage. (API in LaunchServices/LSSharedFileList.h)
  • From: Parimal Das <email@hidden>
  • Date: Mon, 7 Sep 2009 16:40:43 +0530

Hello all,

I am trying to do the following- "when my app is used for the first
time - *'open
at login'* is selected by default". For that i am calling the code below for
the app's first run.

The code is working fine and my app is getting added in the login item list,
But on ctrl+click on my apps dock icon, its failing to show 'open at login'
as selected (tick mark)

What i am missing here??
Please guide.

*LSSharedFileListRef loginListRef = LSSharedFileListCreate(NULL,
kLSSharedFileListSessionLoginItems, NULL);
     if (loginListRef) {
         // Insert the item at the bottom of Login Items list.
    LSSharedFileListItemRef loginItemRef =
LSSharedFileListInsertItemURL(loginListRef,

kLSSharedFileListItemLast,

NULL,

NULL,

(CFURLRef)url,  // url is my app location

NULL,

NULL);

            if (loginItemRef) {
                CFRelease(loginItemRef);
            }

         CFRelease(loginListRef);
        }*


Advance Thanks
-Parimal Das
_______________________________________________

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

  • Follow-Ups:
    • Re: Problem with LSSharedFileListInsertItemURL() usage. (API in LaunchServices/LSSharedFileList.h)
      • From: Steven Degutis <email@hidden>
  • Prev by Date: Crash on SL in com.apple.DesktopServices after using NSOpenPanel
  • Next by Date: Re: Crash on SL in com.apple.DesktopServices after using NSOpenPanel
  • Previous by thread: Re: Crash on SL in com.apple.DesktopServices after using NSOpenPanel
  • Next by thread: Re: Problem with LSSharedFileListInsertItemURL() usage. (API in LaunchServices/LSSharedFileList.h)
  • Index(es):
    • Date
    • Thread