摘要: 参考官方文档:http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/KeyValueCoding/Articles/KeyValueCoding.html#//apple_ref/doc/uid/10000107-SW1 阅读全文
posted @ 2012-08-08 19:05 FoxBabe 阅读(286) 评论(0) 推荐(0)
摘要: 参考官方文档:http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/KeyValueObserving/KeyValueObserving.html#//apple_ref/doc/uid/10000177-BCICJDHA看这个概念老久了,迟迟没能真正的用到,今天总算是使用上了,回头来把方法补上。大批大批的概念我就不赘述了,看官方最有效。三分步1、保证要添加观察的类符合kvc2、为属性添加观察者 //为table的image添加观察者 [[self imageView] add... 阅读全文
posted @ 2012-08-08 19:02 FoxBabe 阅读(473) 评论(2) 推荐(0)
摘要: 一、线程的创建和启动NSThread创建主要有两种直接方式:[NSThread detachNewThreadSelector:@selector(myThreadMainMethod:) toTarget:self withObject:nil];和NSThread* myThread = [[NSThread alloc] initWithTarget:self selector:@selector(myThreadMainMethod:) ... 阅读全文
posted @ 2012-08-08 13:41 FoxBabe 阅读(330) 评论(0) 推荐(0)