• 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: "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.

  • Prev by Date: Re: determining binary files from text
  • Next by Date: Re: Random Number
  • Previous by thread: Re: Problems converting NSString path to FSSpec
  • Next by thread: Opacity in IB
  • Index(es):
    • Date
    • Thread