![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Mac开发
gwonph
这个作者很懒,什么都没留下…
展开
-
FourCharCode2Str
#include <TargetConditionals.h>#if TARGET_RT_BIG_ENDIAN# define FourCC2Str(fourcc) (const char[]){*((char*)&fourcc), *(((char*)&fourcc)+1), *(((char*)&fourcc)+2), *(((char*)&fourcc)+3),0}#else# define FourCC2Str(fourcc) (cons.转载 2021-02-08 17:04:00 · 211 阅读 · 0 评论 -
Mac生成pkg安装包
参考:https://stackoverflow.com/questions/11487596/making-macos-installer-packages-which-are-developer-id-readyhttps://www.unix.com/man-page/osx/1/pkgbuild/Pkgbuild 创建component package(pkg文件)。productbuild 创建product archive(也是个pkg文件,可以包含多个component .原创 2020-07-30 18:08:06 · 2123 阅读 · 0 评论 -
Apple Events 编程
Apple Events相关概念Apple Event (实际上是一个AEDescriptor 列表,包含Attribute Descriptor和Parameter Descriptor)Apple Event Record (AERecord): A descriptor whose data is a list of keyword-specified descriptors.Descriptor(AEDes): 存储数据和附带的描述符类型。构建Apple Event的基本结构。.原创 2020-05-20 18:20:34 · 1176 阅读 · 0 评论 -
Mac查看更改文件权限命令
查看文件权限ls -l 文件名/目录文件权限信息解读-rw-r--r--@ 1 xuye staff 0 4 13 17:45 111.txt文件权限信息7部分,分别是:1、文件属性,即文件的类型/读/写/执行权限,共10个字符。第一个字符表示类型,后9个字符分3组,表示该文件对于Owner、组group、其他用户other的读/写/执行权限。-代表无权限;r代表具有可读权限; w代表具有可写权限;x代表具有可执行权限拿111....原创 2020-05-20 17:28:42 · 1001 阅读 · 0 评论 -
cocoa 应用接收某个URL Scheme
cocoa 应用接收某个URL Scheme1)Info.plist添加URLtype<key>CFBundleURLTypes</key><array> <dict> <key>CFBundleURLName</key> <string>http URL</string> <key>CFBundleURLSchemes</key...原创 2020-05-20 16:50:51 · 202 阅读 · 0 评论