![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Mac
文章平均质量分 59
liuming651664
这个作者很懒,什么都没留下…
展开
-
pyobjc实现鼠标事件模拟(Mac)
既然pyobjc能够使用cocoa提供的这么多库函数,那对我们有没有一些实际的作用呢?联想到在自动化测试中,appscript有些操作目前还是无法实现的,例如:无法实现点击屏幕任意坐标(appscript中未找到类似的api)无法双击某个控件(通过appscript两次调用控件的click方法是不生效的)无法实现控件上右键……现在,这些appscript无法完成的操作,通过pyo...原创 2013-10-10 14:58:55 · 681 阅读 · 1 评论 -
Objective-c中线程NSThread的使用
NSThread使用1.创建并启动线程 thread = [[NSThread alloc]initWithTarget:self selector:@selector(startMonitor) object:nil]; [thread start]; 2.停止线程 先向线程发送cancel消息,将线程标记为停止,然后在合适的地方判断线程是否标记为退出,...原创 2013-10-10 15:07:26 · 218 阅读 · 0 评论 -
命令行编译之xcodebuild
A. 确保xcodebuild命令能正常运行如果使用xcodebuild命令出现如下错误:could not stat active Xcode path '/Volumes/Xcode/Xcode.app/Contents/Developer'. (No such file or directory)解决办法:xcode-select -switch 新的xcod...原创 2013-10-11 10:46:01 · 316 阅读 · 0 评论 -
Objective-C文件操作
In the chapter entitled Working with Directories on iPhone OS we looked at the NSFileManager, NSFileHandle and NSData Foundation Framework classes and discussed how the NSFileManager class in pa...原创 2013-10-23 13:10:39 · 189 阅读 · 0 评论