随笔分类 - Macos
摘要:http://blog.csdn.net/kesalin/article/details/6749107NSWorkspace 为应用程序提供如下服务:1)打开,操作文件/设备,获取文件/设备信息2)跟踪文件,设备以及数据库的变动3)设置或获取文件的 Finder 信息4)启动应用程序。NSWork...
阅读全文
摘要:http://www.cnblogs.com/iihe602/p/3277735.htmlMac下搭建svn服务器和XCode配置svn分类:iOS2013-01-14 14:365781人阅读评论(0)收藏举报Mac下搭建svn服务器和XCode配置svn先打开命令行终端。1、创建svn repo...
阅读全文
摘要:NSWindow *window; // 也可以是你自己的窗口NSView *superView = [window contentView];NSTableView *tableView = [[NSTableView alloc] initWithFrame:[superView frame]]...
阅读全文
摘要:审核 加急:https://developer.apple.com/appstore/contact/?topic=expedite原因:We found a serious problem, our application is collapse phenomenon, poor brings t...
阅读全文
摘要:http://testflightapp.com/sdk
阅读全文
摘要:https://developer.apple.com/library/mac/documentation/GraphicsImaging/Conceptual/QuartzDisplayServicesConceptual/Articles/DisplayCapture.htmlhttps://d...
阅读全文
摘要:NSButton *tempBtn = [[NSButton alloc] initWithFrame: NSMakeRect(200, 200, 20, 20)];[tempBtn setButtonType: NSMomentaryPushInButton];[tempBtn setBezelS...
阅读全文
摘要:返回值均为毫秒ios #include uint64_t time = mach_absolute_time(); mach_timebase_info_data_t timebase; mach_timebase_info(&timebase); return (double)time * ...
阅读全文
摘要:http://blog.csdn.net/cjj198561/article/details/28955461编译librtmp需要先编译openssl,因为librtmp依赖openssl首先编译openssl:把以下内容保存为shell脚本:#!/bin/shVERSION="1.0.1h" #...
阅读全文
摘要:#import "TargetConditionals.h"gcc based compiler used on Mac OS Xfor EX#if !TARGET_IPHONE_SIMULATOR Float32 preferredBufferSize = 0.0232; if (checkE...
阅读全文
摘要:http://blog.csdn.net/wildfireli/article/details/18668897
阅读全文
摘要:ios4 设备上最好就不要使用 ARC。。。strong,weak 用来修饰属性。strong 用来修饰强引用的属性;@property (strong) SomeClass * aObject;对应原来的@property (retain) SomeClass * aObject; 和 @prop...
阅读全文
摘要:http://code4app.com/article/cocoapods-install-usageCocoaPods安装和使用教程Code4App 原创文章。转载请注明出处:http://code4app.com/article/cocoapods-install-usage目录CocoaPod...
阅读全文
摘要:https://ruby-china.org/wiki/install_ruby_guide如何快速正确的安装 Ruby, Rails 运行环境对于新入门的开发者,如何安装 Ruby, Ruby Gems 和 Rails 的运行环境可能会是个问题,本页主要介绍如何用一条靠谱的路子快速安装 Ruby ...
阅读全文
摘要:打开你的工程,点击目录的工程文件,最顶端蓝色的,然后选择project下你的工程,还是蓝色那项,然后build Settings,然后往下拉,在Apple LLVM 5.0 - Language - Objective C 里有一个选项,Objective-C Automatic Reference...
阅读全文
摘要:旧工程配置arc方案:1,直接在targets->build phases中修改compiler Flags,是否支持arc。添加:-fobjc-arc,就可以让旧项目支持arc。如果想让原来支持arc的不使用arc则添加-fno-objc-arc2,因为在build phases中可以改变是否支持...
阅读全文
摘要:本文详细分析插件的代码是如何执行的,主要分析np_entry.cpp、npn_gate.cpp和npp_gate.cpp.希望能够有所收获。在windows平台下,插件就是一个dll,注意到这个dll的def文件内容是:NP_GetEntryPointsNP_InitializeNP_Shutdow...
阅读全文
摘要:时间单位换算表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...
阅读全文
摘要:今天在iOS下找类似Windows平台的GetTickCount这样的函数,找到一个叫mach_absolute_time()的函数,但是Apple的文档非常不给力,找个半天才比较清楚是怎么回事,原来这个函数返回的值只是启动后系统CPU/Bus的clock一个tick数,跟GetTickCount不...
阅读全文
摘要:dispatch_release时值不能小于dispatch_semaphore_create时的值,否则系统会认为还在使用中而报错http://stackoverflow.com/questions/8287621/why-does-this-code-cause-exc-bad-instruct...
阅读全文