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: Getting the current user dir in Carbon



On Nov 15, 2004, at 10:42 PM, OL&L Lists wrote:
It's the call to FSPathMakeFSSpec that is failing with file not found. That same call works on lots of other pathnames that I have converted like any file name inside /tmp such as:

UInt8           *pathPOSIX = "tmp/filename";

It's specifying the current user's home dir in the path name that seems to be causing FSPathMakeFSSpec to fail.


~ is not substituted in the Carbon or CoreFoundation APIs (FSPathMakeFSSpec, CFURLCreateWithFileSystemPath, etc.) You need to use the POSIX glob(3) call on it first to expand it, then you can use the result(s) with the above calls. See x_man_page://3/glob

Chris

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >Getting the current user dir in Carbon (From: OL&L Lists <email@hidden>)
 >Re: Getting the current user dir in Carbon (From: Ian Anderson <email@hidden>)
 >Re: Getting the current user dir in Carbon (From: Ian Krieg <email@hidden>)
 >Re: Getting the current user dir in Carbon (From: OL&L Lists <email@hidden>)
 >Re: Getting the current user dir in Carbon (From: Ian Krieg <email@hidden>)
 >Re: Getting the current user dir in Carbon (From: OL&L Lists <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.