Re: Opening a file from a DMG.
Re: Opening a file from a DMG.
- Subject: Re: Opening a file from a DMG.
- From: Alexey Proskuryakov <email@hidden>
- Date: Tue, 31 May 2005 10:49:21 +0400
On 31.05.2005 08:23, "Matt Fox-Wilson" <email@hidden> wrote:
> I've been having a couple of problems opening a file from inside a .app
> bundle in a dmg.
This doesn't have anything to do with Xcode, does it? Perhaps, this
discussion should be moved to Carbon-dev mailing list.
> <dmgname>:<app.app>:Contents:MacOS:Resources:resource.grf
>
> The Resources folder there is stored alongside the executable for cross
> platform code reasons.
>
> Anyway, calling FSOpenFork for that path is returning err -35 (nsvErr,
> Volume not found).
Sounds strange: FSOpenFork takes an FSRef, not a path. Do you use CFURL
for this conversion? How do you use it? A code snippet would help a lot.
> While I don't particularly want people running the app from that folder
> anyway, it looks bad if it fails to launch from there, and I can't see any
> reason why the path would be invalid in this case.
I've seen similar issues with CFURL and HFS paths, but more information is
certainly needed to address this one. What is the OS version? What is the
volume name (if it has any non-ASCII characters)? Finally, how do you mount
the dmg?
- WBR, Alexey Proskuryakov
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden