![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Mac OS X
这个名字很响亮
努力拼搏,快乐生活
展开
-
C++ 和 Object-c 混编时 提示的 class 错误
http://stackoverflow.com/questions/8588734/unknown-type-name-class-did-you-mean-classUnknown type name 'class'; did you mean 'Class'?Select "Compile Source As" variable in compil原创 2015-11-10 18:26:15 · 563 阅读 · 0 评论 -
@class @synthesize 的作用
http://blog.sina.com.cn/s/blog_69081e060100p4r1.html@class只是告诉编译器,其后面声明的名称是类的名称,至于这些类是如何定义的,暂时不用考虑。 在头文件中,一般只需要知道被引用的类的名称就可以了。 不需要知道其内部的实体变量和方法,所以在头文件中一般使用@class来声明这个名称是类的名称。而在实现类里面,因为会用到这转载 2015-11-11 14:36:03 · 311 阅读 · 0 评论 -
Mac 读写文件
NSArrayNSString *> *sp =NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSAllDomainsMask, true); if (sp.count >0) { NSURL *url = [NSURLfileURLWith原创 2015-11-12 09:48:00 · 1083 阅读 · 0 评论 -
Object-C 字符串类各种操作方法
转自:http://blog.csdn.net/newjerryj/article/details/6262893 NSString *str=@"every day keep up"; NSMutableString *mstr; mstr=[NSMutableStringstringWithString:st转载 2015-11-13 17:34:37 · 375 阅读 · 0 评论 -
AppleScript 的一些命令
参考:http://apple4.us/2007/12/write-your-first-applescript.htmlhttp://apple4us.com/2007/12/applescript-finder-commands/http://www.sjsjw.com/kf_mobile/article/4_3329_12038.asp当然我们可以将cho原创 2015-11-13 11:36:05 · 2252 阅读 · 0 评论 -
将指针指向的内容以字符串的形式传递出来
假设有一个对象:A *a = [[A alloc] init];我们可能不关心A的类型,但是要获取 a 所指向的具体内容,该如何做呢?可能有人会这个处理:NSString *str = (NSString *) a ;NSLog(@"%@", str);这样可以将 a 的内容打印出来,细心的大家会发现,str 指向的是 a 的内容没有错,但是,str 所指向的内容还是 A原创 2015-11-13 19:25:27 · 1005 阅读 · 0 评论 -
Swift: How to convert a String to UInt8 array?
http://stackoverflow.com/questions/30255402/swift-how-to-convert-a-string-to-uint8-arraylet str = "test"let byteArray = [UInt8](str.utf8)转载 2017-01-06 12:05:54 · 2121 阅读 · 0 评论