【发布时间】:2017-09-14 07:46:56
【问题描述】:
这里我正在制作一个 Cocoa 菜单栏代理应用程序。现在问题是 Cocoa 主应用程序引用了另一个帮助程序应用程序,我使用 NSBundle 和工作区通过主应用程序打开(打开|关闭)按钮启动这个帮助程序应用程序。进入正常工作后 2 分钟无响应。 在这种情况下,我们怎么能做到这一点。 辅助应用只是拖入主应用中。
开启按钮->
NSBundle *mainBundle = [NSBundle mainBundle];
NSString *helperAppPath = [[mainBundle bundlePath]
stringByAppendingString:@"/Contents/Resources/helperapp.app"];
[[NSWorkspace sharedWorkspace] launchApplication:helperAppPath];
Q.必须设置哪些权利或在哪个应用程序中? Q.Save It from crash(Not Responding).
IMP Question is that -> .Note that NoW i watched at activity monitor there is showing debugserver919, in Parent Process. instead of launched1 tell me what i can do?
【问题讨论】: