Re: Problems converting NSString path to FSSpec
Re: Problems converting NSString path to FSSpec
- Subject: Re: Problems converting NSString path to FSSpec
- From: Finlay Dobbie <email@hidden>
- Date: Thu, 28 Feb 2002 21:24:49 +0000
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.