• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problems converting NSString path to FSSpec
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Multiple Line Help Tags
  • Next by Date: Re: determining binary files from text
  • Previous by thread: Problems converting NSString path to FSSpec
  • Next by thread: RE: Problems converting NSString path to FSSpec
  • Index(es):
    • Date
    • Thread