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: Can't convert path ~/... to Fsref



> Why are you using paths and FSSpecs?
That is temporary until I rewrite all my file access routines.

> Are you aware that this function
> can fail because not all file names can be encoded into a Pascal string, and
> that only the first 31 characters of that field are used?
Yes, I am aware, In another function it wants the OutFSSpec->name in pascal.

The actual path of "~/..." may come from user entry and or some internal code that assume Linux
style.



----- Original Message ----- 
From: "Laurence Harris" <email@hidden>
To: "Denis @ TheOffice" <email@hidden>; <email@hidden>
Sent: Thursday, September 29, 2005 4:31 PM
Subject: Re: Can't convert path ~/... to Fsref


> On 9/29/05 4:28 PM, Denis @ TheOffice didst favor us with:
>
> > Re: Can't convert path ~/... to FsrefThanks,
> > But, I fail to see how to integrate that into my code.
> > I am trying to do a generic function that will handle all possible entry.
> > Plus I was hopping for something in Carbon.
>
> Why are you using paths and FSSpecs? Why not FSRefs? Where are you getting
> these paths that they have tildas in them? Are you aware that this function
> can fail because not all file names can be encoded into a Pascal string, and
> that only the first 31 characters of that field are used?
>
> Larry
>
> >
> >
> > ----- Original Message -----
> > From: Rosyna
> > To: Denis @ TheOffice ; email@hidden
> > Sent: Thursday, September 29, 2005 4:01 PM
> > Subject: Re: Can't convert path ~/... to Fsref
> >
> >
> > man 3 glob
> >
> >
> > http://developer.apple.com/documentation/Darwin/Reference/ManPages/man3/glob.3
> > .html
> >
> >
> > Ack, at 9/29/05, Denis @ TheOffice said:
> >
> >
> > I am trying to create/open a file with the origine in posix example
> > "~/Library/Preferences/temp.tiff"
> >
> > I have made a function to convert based on some example I have found...
> > It works most of the time but seems to failed with the TILDE(~) current
> > user...
> > The RetStatus is -43 rectory not found...
> >
> >
> > -- 
> >
> >
> > Sincerely,
> > Rosyna Keller
> > Technical Support/Holy Knight/Always needs a hug
> >
> > Unsanity: Unsane Tools for Insanely Great People
> >
> > It's either this, or imagining Phil Schiller in a thong.
>

 _______________________________________________
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: 
 >Re: Can't convert path ~/... to Fsref (From: Laurence Harris <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.