上一页 1 2 3 4 5 6 7 8 9 ··· 34 下一页

2013年9月4日

摘要: 1. 关于dispatch_oncedispatch_onceExecutes a block object once and only once for the lifetime of an application.在stackoverflow上有个对dispatch_once的解释,非常棒:What's the exact reason for using dispatch_once in the shared instance accessor of a singleton under ARC?+(MyClass*)sharedInstance{// Static local p 阅读全文
posted @ 2013-09-04 13:07 做个不善的人 阅读(240) 评论(0) 推荐(0)
 

2013年8月27日

摘要: MoveConstructible 和MoveAssignableMoveConstructibleSpecifies that an instance of the type can be move-constructed (moved). This means that type has move semantics: that is, can transfer its internal state to a new instance of the same type potentially minimizing the overhead.The type must meet CopyCo 阅读全文
posted @ 2013-08-27 12:27 做个不善的人 阅读(364) 评论(0) 推荐(0)
 
摘要: unique_ptr最先在boost中被定义,后来被C++标准委员会选中为C++11的feature之一。std::unique_ptr is a smart pointer that retains sole ownership of an object through a pointer and destroys that object when the unique_ptr goes out of scope. No two unique_ptr instances can manage the same object.The object is destroyed and its me 阅读全文
posted @ 2013-08-27 12:21 做个不善的人 阅读(467) 评论(0) 推荐(0)
 

2013年7月10日

摘要: Keyboard/Mouse Event + CocoaAppleEvent + CocoaAppleEvent + CommandLine App(w/o UI) + CoreFoundationAppleEvent + CommandLine App(w/o UI) + CarbonKeyboard/Mouse Event + Carbon 阅读全文
posted @ 2013-07-10 07:09 做个不善的人 阅读(195) 评论(0) 推荐(0)
 

2013年5月20日

摘要: 常用的命名法有匈牙利命名法、驼峰式命名法和Pascal命名法。驼峰式命名法和Pascal命名法有些相似,单字之间不用任何连接符号隔开( - 和 _ 等)连结,有两种格式:小驼峰式命名法(lower camel case):第一个单字以小写字母开始;第二个单字的首字母大写,例如:firstName、lastName。大驼峰式命名法(upper camel case):每一个单字的首字母都采用大写字母,例如:FirstName、LastName、CamelCase,也被称为Pascal命名法。本文重点说说匈牙利命名法,这种命名方法很适合在C++程序中使用。下面分变量和函数名来分别说明。变量,基本结 阅读全文
posted @ 2013-05-20 03:26 做个不善的人 阅读(555) 评论(0) 推荐(0)
 

2013年5月16日

摘要: OpenStep was an object-oriented application programming interface (API) specification for an object-oriented operating system that used a non-NeXTSTEP operating system as its core, principally develop... 阅读全文
posted @ 2013-05-16 12:56 做个不善的人 阅读(194) 评论(0) 推荐(0)
 

2013年5月8日

摘要: enum { NSUserDomainMask = 1, NSLocalDomainMask = 2, NSNetworkDomainMask = 4, NSSystemDomainMask = 8, NSAllDomainsMask = 0x0ffff,};在这个enum中列举了目录的domain,NSUserDomainMask是指/user/<userid>/目录,对于NSLocalDomainMask,官方文档说是Local to the current machine—the place to install items available to everyone... 阅读全文
posted @ 2013-05-08 03:10 做个不善的人 阅读(381) 评论(0) 推荐(0)
 
摘要: 我是从http://blog.sina.com.cn/s/blog_55f899fb0102dqi2.html拷贝过来的,里面有原帖地址,不过我发文时已经失效了。尊重原创哦!打开Macintosh HD你会发现内中有四个文件夹(一般情况下,隐藏文件夹是不可见的,而且,可能会更多,比如安装xcode后会有developer文件夹).分别有——应用程序(Applications)、系统(System)、用户(User)、资料库(Library)。四个文件夹中又分别各有若干数量的文件夹存在。Applications:这个当然就是存放各种软件的位置了。System:包含由Apple安装的系统软件。这此 阅读全文
posted @ 2013-05-08 02:46 做个不善的人 阅读(1690) 评论(0) 推荐(0)
 

2013年5月1日

摘要: 编辑器:AppleScript Editor这位仁兄写的入门文章还不错:http://bukkake.iteye.com/blog/828322,就不重复了。下面补充一点别的AppleScript的后缀名为.scpt,可以将编写好的.scpt导出为几种格式:.applescript(Text), .app(Application), .scptd(script bundle),都有什么用呢?.scptd(script bundle):像Mac上其他的bundle一样,是一个压缩包,包含scpt文件和其他的声音、图片等资源。双击后打开AppleScript Editor.app(Applicat 阅读全文
posted @ 2013-05-01 09:16 做个不善的人 阅读(4996) 评论(0) 推荐(0)
 

2013年4月29日

摘要: Certificates证书是你有权利开发的凭证,是开发者的一种标识,相当于身份证,一个开发者账号只有一套。一套含两个,Development和Distribution。其中Development证书提供开发者在电脑上真机调试的权限,可以制作多个副本分发到多台电脑。Distribution证书给开发者提供发布ios程序的权限,也就是说有了这个,你就有权力发布程序到App Store去了,当然这只是万里长征的第一步。只有一个,不能制作副本分发到多台电脑。Devices个人认为ios和android在开发上最大的区别,安卓系统默认就开放了真机开发调试,任何人任何一台机器,不需要任何认证,即可以在真 阅读全文
posted @ 2013-04-29 12:26 做个不善的人 阅读(2066) 评论(0) 推荐(0)
 
上一页 1 2 3 4 5 6 7 8 9 ··· 34 下一页