Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Opening a file from a DMG.



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:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >Opening a file from a DMG. (From: "Matt Fox-Wilson" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.