摘要: http://geeklu.com/2010/10/getting-started-with-npapi-plugin/2012-10-10 更新:https://code.google.com/p/chromium/issues/detail?id=139816Chrome22之后貌似完全放弃10... 阅读全文
posted @ 2014-06-06 14:25 dzldzl 阅读(668) 评论(0) 推荐(0)
摘要: 旧工程配置arc方案:1,直接在targets->build phases中修改compiler Flags,是否支持arc。添加:-fobjc-arc,就可以让旧项目支持arc。如果想让原来支持arc的不使用arc则添加-fno-objc-arc2,因为在build phases中可以改变是否支持... 阅读全文
posted @ 2014-06-04 09:20 dzldzl 阅读(1529) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/hgl868/article/details/8576531scriptable接口的实现,与属性有关的函数为HasProperty、GetProperty、SetProperty。在JS中设置属性(以bar为例)用plugin.bar=barvalue;来... 阅读全文
posted @ 2014-05-29 16:50 dzldzl 阅读(386) 评论(0) 推荐(0)
摘要: 本文详细分析插件的代码是如何执行的,主要分析np_entry.cpp、npn_gate.cpp和npp_gate.cpp.希望能够有所收获。在windows平台下,插件就是一个dll,注意到这个dll的def文件内容是:NP_GetEntryPointsNP_InitializeNP_Shutdow... 阅读全文
posted @ 2014-05-29 16:47 dzldzl 阅读(875) 评论(0) 推荐(0)
摘要: 时间单位换算表1秒=1000毫秒(ms)1毫秒=1/1,000秒(s)1秒=1,000,000微秒(μs)1微秒=1/1,000,000秒(s)1秒=1,000,000,000纳秒(ns)1纳秒=1/1,000,000,000秒(s)1秒=1,000,000,000,000皮秒(ps)1皮秒=1/1... 阅读全文
posted @ 2014-05-29 09:33 dzldzl 阅读(639) 评论(0) 推荐(0)
摘要: 今天在iOS下找类似Windows平台的GetTickCount这样的函数,找到一个叫mach_absolute_time()的函数,但是Apple的文档非常不给力,找个半天才比较清楚是怎么回事,原来这个函数返回的值只是启动后系统CPU/Bus的clock一个tick数,跟GetTickCount不... 阅读全文
posted @ 2014-05-28 17:33 dzldzl 阅读(1396) 评论(0) 推荐(0)
摘要: dispatch_release时值不能小于dispatch_semaphore_create时的值,否则系统会认为还在使用中而报错http://stackoverflow.com/questions/8287621/why-does-this-code-cause-exc-bad-instruct... 阅读全文
posted @ 2014-05-28 09:19 dzldzl 阅读(247) 评论(0) 推荐(0)
摘要: A dispatchsemaphore(信号量) is useful if you need a concurrency control for a small portion(部分) of the source code that has smaller granularity(颗粒度) than... 阅读全文
posted @ 2014-05-27 10:25 dzldzl 阅读(437) 评论(0) 推荐(0)
摘要: 1.malloc申请空间不当,导致越界,在不定的情况下崩溃typedef struct _tagCmsHcInst{。。。。。。}cmsHcInst,*pcmsHcInst;错误:pcmsHcInstinst = (pcmsHcInst)malloc(sizeof(pcmsHcInst))正确:pc... 阅读全文
posted @ 2014-05-23 15:58 dzldzl 阅读(145) 评论(0) 推荐(0)
摘要: 相同:NSData*imageData =[imageTIFFRepresentation]; NSBitmapImageRep*imageRep =[NSBitmapImageRep imageRepWithData:imageData]; [imageRep setSize:[[_imageV... 阅读全文
posted @ 2014-05-21 23:06 dzldzl 阅读(934) 评论(0) 推荐(0)