mac应用程序开发问题,怎么在自己代码里控制另一个app应用。 mac应用应用程序控制 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 //直接运行if(![[NSWorkspace sharedWorkspace] launchApplication:@"Path Finder"]) NSLog(@"运行失败");//////////////////////////////////////////////////////////////带参数运行NSWorkspace *workspace = [NSWorkspace sharedWorkspace];NSURL *url = [NSURL fileURLWithPath:[workspace fullPathForApplication:@"Path Finder"]];//Handle url==nilNSError *error = nil;NSArray *arguments = [NSArray arrayWithObjects:@"Argument1", @"Argument2", nil];[workspace launchApplicationAtURL:url options:0 configuration:[NSDictionary dictionaryWithObject:arguments forKey:NSWorkspaceLaunchConfigurationArguments] error:error];//处理错误 是的,需要接收参数,要是还有什么问题话,我晚一点可以出个demo 多谢了,最好是给个DEMO吧。比如我在A软件输入一段字符,输完之后点确定,程序自动启动B软件,然后把A软件输的字符自动填到B软件的一个UILABLE里,然后B软件自动运行开始检测。这个能实现吗?全部用程序?需要B软件开发什么样的接口? 555555555555555555,大神在吗?http://download.csdn.net/detail/zhangao0086/7695315 555555555555555555,大神在吗?http://download.csdn.net/detail/zhangao0086/7695315多谢大神,我研究下啊。 关于iphone,objective-c和xcode相关的问题 请问 如何在一个view上 显示两个tableview? 关于objective-c 类目(Category),遇到的问题新手求助! iccid查询 新人求助,自定义slider,加了图片后滑到右边大概80%就整条变图片了 为什么不释放内存? ios开发,关于动画没用效果,鸟 xcode打包问题100分 编译app出现file too small (length=0) for architecture arm64 如何用Python实现ios自动刷抖音,看视频。 【微信登陆】的乱码问题! 关于一个简单的学生列表app的问题
//直接运行
if(![[NSWorkspace sharedWorkspace] launchApplication:@"Path Finder"])
NSLog(@"运行失败");
////////////////////////////////////////////////////////////
//带参数运行
NSWorkspace *workspace = [NSWorkspace sharedWorkspace];
NSURL *url = [NSURL fileURLWithPath:[workspace fullPathForApplication:@"Path Finder"]];
//Handle url==nil
NSError *error = nil;
NSArray *arguments = [NSArray arrayWithObjects:@"Argument1", @"Argument2", nil];
[workspace launchApplicationAtURL:url options:0 configuration:[NSDictionary dictionaryWithObject:arguments forKey:NSWorkspaceLaunchConfigurationArguments] error:error];
//处理错误
多谢了,最好是给个DEMO吧。比如我在A软件输入一段字符,输完之后点确定,程序自动启动B软件,然后把A软件输的字符自动填到B软件的一个UILABLE里,然后B软件自动运行开始检测。
这个能实现吗?全部用程序?
需要B软件开发什么样的接口?
http://download.csdn.net/detail/zhangao0086/7695315
http://download.csdn.net/detail/zhangao0086/7695315多谢大神,我研究下啊。