Re: ifstream can't open mac formated path
Re: ifstream can't open mac formated path
- Subject: Re: ifstream can't open mac formated path
- From: "Sean McBride" <email@hidden>
- Date: Tue, 3 Apr 2007 09:41:19 -0400
- Organization: Rogue Research
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:
This email sent to email@hidden