摘要:
Q: How to config custom shortcuts? A: Enter the preferences setting window from menu bar "Preferences" and then set the shortcuts, the shortcuts are a 阅读全文
摘要:
Q. Will the desktop background image be restored after quit? A: Yes. Right now, "Hide icons" and "Change desktop background" features are both tempora 阅读全文
摘要:
Main Features: 1. Login Items: Manageable list of applications that are launched automatically every time you log in.2. Launch Agents: Some applicatio 阅读全文
摘要:
How to use Finder Quick Menur: 1. Start Finder Quick Menu.2. Open "System Preferences -> Extension" to enable "Finder Quick Menu Extension".3. Go to F 阅读全文
摘要:
How to use The App Locker: 1. Start The App Locker, create a password.2. In the main console, click "+" and select the apps you want to lock.3. You ca 阅读全文
摘要:
http://blog.lessfun.com/blog/2014/11/22/when-should-use-weakself-and-strongself-in-objc-block/ 阅读全文
摘要:
原帖请看:http://cocoathings.blogspot.com/2013/01/introduction-to-user-notifications-in.html想要实现如图这样的notification popup弹出notification的代码如下NSUserNotificatio... 阅读全文
摘要:
assign: 对基础的数据类型,比如NSInteger和C数据类型(int,float,char)等copy: 针对NSStringretail: 针对NSObject及其子类nonatomic:单线程,防止在写未完成的时候被另外一个线程读取,造成数据读取错误weak: 它所指向的对象一旦... 阅读全文
摘要:
目前我所知道的,在cocoa中获得root权限的方法有3种:1. 通过AuthorizationCopyRights函数2. 在UI上添加一个锁的样子的控件,然后通过开关这个锁来获取root权限3. 直接调用Applescript来以root权限执行脚本其中方法1和2一般用来执行一个shell脚本或... 阅读全文
摘要:
mac上的应用程序除了左上方会有菜单之外,在屏幕的右上方也会有一个图标样的菜单,这个类似于windows上右下角的system tray。本文讲述如何给自己的应用程序添加一个system tray(在mac上应该叫状态栏吧,status item)1. 创建cocoa的application,名字为... 阅读全文