make mac package/bundle programmatically

后端 未结 4 1990
梦谈多话
梦谈多话 2020-12-09 06:06

through terminal you can make it with a command - \"SetFile -a B filename\"

programmatically i think i should set one of the attributes through [[NSFileManager defa

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-09 06:24

    Thanks everybody for help. I used the solution with info.plist file. this is the part of the plist file.

    CFBundleDocumentTypes
    
        
            CFBundleTypeName
            Project
            LSHandlerRank
            Default
            LSTypeIsPackage
            
            CFBundleTypeExtensions
            
                fbp
            
            CFBundleTypeIconFile
            document
            CFBundleTypeRole
            Editor
        
    
    

提交回复
热议问题