RE: Problems converting NSString path to FSSpec
RE: Problems converting NSString path to FSSpec
- Subject: RE: Problems converting NSString path to FSSpec
- From: "Josh Ferguson" <email@hidden>
- Date: Thu, 28 Feb 2002 15:34:38 -0600
- Thread-topic: Problems converting NSString path to FSSpec
I feel dumb now ;).
-----Original Message-----
From: Finlay Dobbie [
mailto:email@hidden]
Sent: Thursday, February 28, 2002 3:25 PM
To: Josh Ferguson
Cc: email@hidden
Subject: Re: Problems converting NSString path to FSSpec
On Thursday, February 28, 2002, at 08:59 PM, Josh Ferguson wrote:
>
OSErr FilePathToFSSpec( NSString* asFilePath, FSSpec* apSpec )
... snip ...
>
err = FSGetCatalogInfo( &fileRef, kFSCatInfoNone, NULL,
>
NULL, apSpec, NULL );
... snip ...
>
Every time it reaches the call to FSGetCatalogInfo, I get an
>
EXC_BAD_ACCESS. I'm relatively confident that all functions before
>
that are working correctly; CFURLGetFSRef will only succeed if I pass a
>
valid path. I'm guessing it's something stupid that I'm doing, but I
>
can't think of what it would it could be! Any ideas? Is there an
>
easier way to do this?
Did you allocate memory for apSpec in the calling function or is it just
a null pointer? :-)
-- Finlay
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.