Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

LoginItemsMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Login Items MBS MacOSX Plugin 7.2 Yes No No Yes, macOS only No
Function: A class to handle login items on Mac OS X.
Notes:
After creating a new object, the constructor may fail sometimes while updateing the list. lasterror is -609 in that case. His happens most likely just after login when the system events process is not yet ready. In that case, let your app wait a few seconds and try again.

For newer Mac OS X versions, please use LSSharedFileListMBS class instead.

Feedback, Comments & Corrections

  • 3 properties
  • 16 methods
    • method AddFile(file as FolderItem, hidden as boolean=false) as boolean
    • method AddURL(url as string, hidden as boolean=false) as boolean
    • method DisplayName(index as Integer) as String
    • method File(index as Integer) as FolderItem
    • method IsHidden(index as Integer) as boolean
    • method Name(index as Integer) as String
    • method OldAddLoginItem(file as folderitem,hide as boolean,allusers as boolean) as boolean
    • method OldCountOfLoginItems(allusers as boolean) as Integer
    • method OldLoginItemPropertyAtIndex(what as Integer, index as Integer, allusers as boolean) as string
    • method OldRemoveLoginItem(file as folderitem,allusers as boolean) as boolean
    • method OldRemoveLoginItemAtIndex(index as Integer, allusers as boolean) as boolean
    • method Remove(index as Integer) as boolean
    • method RemoveFile(file as FolderItem) as boolean
    • method RemoveURL(url as string) as boolean
    • method Update
    • method URL(index as Integer) as String

This class has no sub classes.

Some examples which use this class:


The items on this page are in the following plugins: MBS MacOSX Plugin.


LocaleMBS   -   LSSharedFileListItemMBS




Links
MBS Xojo PDF Plugins