English 中文(简体)
可可:砂箱再发射一次申请的权利
原标题:Cocoa: Sandbox entitlement to launch another application

I m calling

[[NSWorkspace sharedWorkspace] launchApplication:path];

从我的沙箱子里,我把这一错误带入了 con里:

9/5/11 12:23:12.462 PM ls Boxd:ail to spawn < PATH REDACTED > for 21383 -êt - 10826

9/5/11 12:23:12.463 PM 应用: spawn_via_bornd(发射)失败,errno=54贴标签=[0x0-0x1994993]MYApp path=< PATH REDACTED >code=0

9/5/11 12:23:12.464 PM 适用:LSOpenFromURLSpec(LSOpenFromURLSpec())返回——10810份申请申请申请和批准;PATH REDACTED >(null)。

换言之,我显然被“Launch Services Sand Box Daemon”(ls Boxd)所阻挡,而“Launch Services Sand Box Daemon”(ls Boxd)认为,第1号信应当启动。

For the record 10826 is "The user does not have permission to launch the application" and then 10810 is "An unknown error has occurred"

是否有任何人了解本案的应享权利?

如何从沙箱中发射其他东西(请不说 Apple果,它是一种无法运转的梦).,特别是从沙箱或XPC服务中叫来)。 理想是在沙箱内使用(严重瘫痪)国家工作空间的一种方法。

问题回答

<代码>发射Application:的参数是 姓名/em>(即@”Safari"等内容),而不是其途径。 这样,它就在我没有任何特殊权利的情况下工作。 我不认为,你可以不使用强硬,用沙箱子发射器。





相关问题
Taking picture with QTCaptureView

Is it possible to simply take a picture and save it somewhere using a QTCaptureView and Apple s built-in iSight? I ve seen lots of tutorials on recording video but none on simply taking a picture. Any ...

Controlling OSX windows

I m trying to control windows of a foreign OSX applications from my application. I d like to 1. move the windows on the screen 2. resize the windows on the screen 3. change the currently active window ...

objective-c: Calling a void function from another controller

i have a void, like -(void) doSomething in a specific controller. i can call it in this controller via [self doSomething], but i don t know how to call this void from another .m file. I want to call ...

NSUndoManager and runModalForWindow:

I have a simple Core Data app which displays a list of entities in the main window. To create or add new entities, I use a second modal window with a separate managed object context so changes can be ...

NSMutableArray values becoming "invalid"

I m trying to show a database information in a tableview and then the detailed information in a view my problem is as follow: I created a NSMutableArray: NSMutableArray *myArray = [[NSMutableArray ...

How to get a flash url in a webpage using a webframe?

As we know , When we load frame from webpage of safari, we will invoke the delegate methods of webkit informal protocol(WebFrameLoadDelegate): webView:didStartProvisionalLoadForFrame: webView:...