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: ifstream can't open mac formated path



On 4/3/07 5:49 PM, Denis Osadchy said:

>Hi All,
>
>we need to handle AEOpenDocument command in application. In handler
>we need to create ifstream. We have library function which forms
>mac formatted path (like imac:Users:...) from FSSpec. Such paths were handled
>correctly previously in CW build. Now in Xcode project ifstream
>initialization fails. Initialization works if I use unix formatted path.
>
>Is it possible to initialize ifstream using mac formatted path?
>
>If not - what the correct way to get POSIX path from FSSpec?

The Carbon list would be a better place to ask this.

But these days, you should never use HFS paths, nor should you use
FSSpecs.  However, there are many functions to convert between posix
paths, hfs paths, FSSpecs, and FSRefs, you could use those.

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


 _______________________________________________
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: 
 >ifstream can't open mac formated path (From: Denis Osadchy <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.