Skip to content

$.NSWorkspace.sharedWorkspace.iconForFile() not work #44

@caoyongfeng0214

Description

@caoyongfeng0214
    var appIcon = $.NSWorkspace.sharedWorkspace.iconForFile('/System/Applications/TextEdit.app');
    $.CFShow(appIcon);
    // OUTPUT:
    // <NSImage 0x7fdfea675180 Size={32, 32}
    // RepProvider=<NSImageISIconRepProvider:0x7fdfe66046a0
    //     icon:<ISBundleIcon: 0x7fdfea673bc0>
    //     Bundle URL: file:///System/Applications/TextEdit.app/
    //     type: (null)
    //     tag: (null)
    //     tag class: (null)
    //     reps:(faulting)>
    //>

Can't get the correct icon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions