• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
sandbox method to open my user manual pdf
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sandbox method to open my user manual pdf


  • Subject: sandbox method to open my user manual pdf
  • From: Keith Knauber <email@hidden>
  • Date: Tue, 18 Dec 2012 17:53:53 +0000
  • Thread-topic: sandbox method to open my user manual pdf

Another simple task made impossibly complex by the sandbox…
opening User_Manual_v3.6.pdf

When running in the sandbox what is the apple recommended step-by-step replacement for these 2 lines of code?

NSString *userManual =  [[NSBundle mainBundle] pathForResource:@"User_Manual_v3.6" ofType:@"pdf"];
[[NSWorkspace sharedWorkspace] openFile: userManual]; // sandbox violation

My app is often used in venues where internet access is explicitly turned off.
So no, pointing to an internet URL is not the solution.
Why is an internet URL entitlement treated as safer than a file inside my code signed bundle?

Why is there no simple entitlement for opening a *simple* pdf that is inside my codesigned app bundle?
I know apple hates adobe, but come on!

Apple needs to publish the step-by-step replacement,
including step-by-step example of the required entitlements.

~K

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden


  • Follow-Ups:
    • Re: sandbox method to open my user manual pdf
      • From: Sean McBride <email@hidden>
  • Prev by Date: Re: implementing relaunch in a sandboxed app
  • Next by Date: Re: Compiler can't find method declared in protocol
  • Previous by thread: Re: implementing relaunch in a sandboxed app
  • Next by thread: Re: sandbox method to open my user manual pdf
  • Index(es):
    • Date
    • Thread