App Store, Sandbox and loadable code bundle
I have an app that normally exists as a System Preference Pane. To get it to work in an app, and share the same code as the prefPane, I built a small host app that simply loads the prefPane (a Mach-O bundle) with: [self setPaneObject:[[[paneClass alloc] initWithBundle:paneBundle] autorelease]]; if ([paneObject loadMainView]) { [paneObject willSelect]; // Add view to window and adjust size [window setContentSize:[[paneObject mainView] frame].size]; [window setContentView:[paneObject mainView]]; [window center]; [window makeKeyAndOrderFront:self]; [paneObject didSelect]; } Both the app and the .bundle are codesigned. The .bundle resides within the host app's package and the whole thing is sandboxed. It works fine on my system, but is there any reason Apple will not approve of this? The Mach-O code bundle gets loaded into the main app and becomes part of it. Has anyone submitted something to the App Store that works like this? Thanks, Trygve ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: App Store, Sandbox and loadable code bundle
On 24 Jun 2014, at 12:48 pm, Trygve Inda cocoa...@xericdesign.com wrote: It works fine on my system, but is there any reason Apple will not approve of this? The Mach-O code bundle gets loaded into the main app and becomes part of it. Has anyone submitted something to the App Store that works like this? I can't say definitively, but I think it's OK to load helper apps or other code into your own app from your own bundle as long as it's all signed. It's not really any different from loading a framework of your own and I've definitely had no problems doing that in an App Store app. The loaded code has the same restrictions as the host app, and can't touch anything outside the sandbox without the usual permissions. --Graham ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com