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

2012年2月4日

Objective-C 属性参数

摘要: 属性参数有以下三种Writability、Setter、SemanticsAtomicityWritabilityThese attributes specify whether or not a property has an associated set accessor. They are mutually exclusive.readwriteIndicates that the property should be treated as read/write. This attribute is the default.readonlyIf you use the@synthesiz 阅读全文

posted @ 2012-02-04 23:09 cokecoffe 阅读(187) 评论(0) 推荐(0) 编辑

NSDictionary

摘要: 摘要: TheNSDictionaryclass declares the programmatic interface to objects that manage immutable associations of keys and values.NSDictionary类定义了对于objects的接口,用于将键值和数值关联起来。Use this class or its su...阅读全文Wangkeke 2012-02-04 22:16 发表评论 阅读全文

posted @ 2012-02-04 22:16 cokecoffe 阅读(141) 评论(0) 推荐(0) 编辑

2012年1月31日

NSRange用法(转)

摘要: 摘要: NSRange的定义 typedefstruct_NSRange { NSUIntegerlocation; NSUIntegerlength; }NSRange; NSRange是一个结构体,其中location是一个以0为开始的index,length是表示对...阅读全文Wangkeke 2012-01-31 15:15 发表评论 阅读全文

posted @ 2012-01-31 15:15 cokecoffe 阅读(197) 评论(0) 推荐(0) 编辑

2011年11月25日

Simple UDP code with C

摘要: http://www.abc.se/~m6695/udp.htmlThe server 1 #include <arpa/inet.h> 2 #include <netinet/in.h> 3 #include <stdio.h> 4 #include <sys/types.h> 5 #include <sys/socket.h> 6 #include <unistd.h> 7 8 #define BUFLEN 512 9 #define NPACK 10 10 #define PORT 9930 ... 阅读全文

posted @ 2011-11-25 22:38 cokecoffe 阅读(164) 评论(0) 推荐(0) 编辑

2011年11月16日

Target failed to run: Remote exception encountered: 'Failed to get task for pid #

摘要: I got this error just recently when i tried to use the instrument to profile my iPad application on the device. And when i selected "Profile" from the menu, and instrument was opened. Then i selected "Allocations" or "Leaks", i just heard "Funk" and then nothi 阅读全文

posted @ 2011-11-16 17:23 cokecoffe 阅读(601) 评论(0) 推荐(0) 编辑

2011年11月15日

OpenGL ES multithreading and EAGLSharegroup

摘要: http://developer.apple.com/library/ios/#qa/qa1612/_index.htmlTechnical Q&A QA1612OpenGL ES multithreading and EAGLSharegroupQ: In my multithreading OpenGL ES application, I load textures (or vertices) on a secondary thread then draw them onto screen on the main thread. Occasionally I see blank i 阅读全文

posted @ 2011-11-15 17:36 cokecoffe 阅读(1161) 评论(0) 推荐(0) 编辑

2011年10月28日

meego开发的学习路线(转)

摘要: 转载时请注明出处和作者联系方式文章出处:http://blog.csdn.net/jack0106作者联系方式:冯牮fengjian0106@yahoo.com.cn不同版本的meego系统,底层和中间层架构,大体是一致的,也是可以定制裁剪的。区别主要在最上层的用户体验层,比如handset版和notebook版的meego,UI就很不一样(UI的开发环境,也不一样),这篇文档,是针对handset版meego的学习路线,做的一个总结。后面提高到的meego,未做明确说明的情况下,都是特指handset版的meego系统。一、基础1、编程语言1.1 meego的图形界面,是基于qt开发的,不用 阅读全文

posted @ 2011-10-28 23:00 cokecoffe 阅读(338) 评论(0) 推荐(0) 编辑

2011年10月19日

公钥 私钥

摘要: 一,公钥私钥1,公钥和私钥成对出现2,公开的密钥叫公钥,只有自己知道的叫私钥3,用公钥加密的数据只有对应的私钥可以解密4,用私钥加密的数据只有对应的公钥可以解密5,如果可以用公钥解密,则必然是对应的私钥加的密6,如果可以用私钥解密,则必然是对应的公钥加的密明白了?假设一下,我找了两个数字,一个是1,一个是2。我喜欢2这个数字,就保留起来,不告诉你们,然后我告诉大家,1是我的公钥。我有一个文件,不能让别人看,我就用1加密了。别人找到了这个文件,但是他不知道2就是解密的私钥啊,所以他解不开,只有我可以用数字2,就是我的私钥,来解密。这样我就可以保护数据了。我的好朋友x用我的公钥1加密了字符a,加密 阅读全文

posted @ 2011-10-19 21:32 cokecoffe 阅读(230) 评论(0) 推荐(0) 编辑

2011年10月11日

Iphone SDK 获得当前连接的SSID等信息

摘要: 今天测试提出新需求,要求Kpad软件启动后,默认绑定房间号是路由名称(SSID)的房台。 方法如下:1.获取到当前连接的SSID。 2.从服务器读取所有房台的信息,将房台号与获取的SSID进行比较,然后绑定此房台。关于获取路由SSID的方法:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->-(id)fetchSSIDInfo{CFArrayRefifs=CNCopySupportedInterfaces();CFDiction... 阅读全文

posted @ 2011-10-11 23:03 cokecoffe 阅读(328) 评论(0) 推荐(0) 编辑

2011年9月25日

复习Linux中的一些零碎知识点

摘要: 1.查找grep、find在Linux下,常用 grep列出(文件内容)含有某个字符串的文件。 find命令查找匹配给定(文件名)的文件。grep用法:grep[options]PATTERN[FILE]例子: grep"main"*-R//查找当前目录下的所有文件、目录中包含“main”字样的文件find用法:find[-H][-L][-P][path][expression]例子: find/work/driver/net-name"*fb*"//查找/work/drivers/net目录下名字中包含fb的文件2.压缩、解压缩、打包、解包 tar.. 阅读全文

posted @ 2011-09-25 18:47 cokecoffe 阅读(189) 评论(0) 推荐(0) 编辑

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

导航