Yeah, but the only thing that goes in a FSSpecs is a Pascal string, I am not liking it either.
But there is not seems to be any alternative that would easily fit in the code I am working on.
----- Original Message -----
From: "Laurence Harris" <email@hidden>
To: "Denis @ TheOffice" <email@hidden>; <email@hidden>
Sent: Thursday, September 29, 2005 7:38 PM
Subject: Re: Can't convert path ~/... to Fsref
> On 9/29/05 5:10 PM, Denis @ TheOffice didst favor us with:
>
> >> 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.
>
> If the path can come from user entry then there should be no Pascal strings
> anywhere in this process. OTOH, you probably know more about all this than I
> do, so never mind. ;-)
>
> Larry
>
> >
> >
> > ----- 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...
> >>>
> >>>
> >>> --
> >>>
>
_______________________________________________
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