• 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: FSSpec from NSString Problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FSSpec from NSString Problems


  • Subject: Re: FSSpec from NSString Problems
  • From: Jonathan Sick <email@hidden>
  • Date: Sun, 26 Jan 2003 13:17:23 -0700

An example of an NSString returned by by NSSavePanel would be: /Users/jsick/Movies/myMovie.mov

So when I do:
OSStatus status = FSPathMakeRef((unsigned const char *)[inPath fileSystemRepresentation],&fsref, NULL);

The FSPathMakeRef returns an OSStatus value of -43. I'm not familiar at all with OSStatus definitions. I did a search on Apple's site, but couldn't find any info on a -43 error. Any pointers to documentation on this error?

Jonathan

On Sunday, January 26, 2003, at 03:13 AM, Rosyna wrote:

Do you happen to know what the error is? And the path?

Ack, at 1/26/03, Jonathan Sick said:

But when I compile this from within Codewarrior 8.3, I get an error that [inPath fileSystemRepresentation] returns a const char *, while the FSPathMakeRef wants an unsigned const char *. I tried casting to (unsigned const char *), and although this did compile, it printed out "makeFSSpec error" in runtime. I'm not sure if casting was the correct course of action, it just seemed like a natural remedy from my original background in Java.
_______________________________________________
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.

  • Follow-Ups:
    • Re: FSSpec from NSString Problems
      • From: Mike Shields <email@hidden>
    • Re: FSSpec from NSString Problems
      • From: Sascha Kujawa <email@hidden>
    • Re: FSSpec from NSString Problems
      • From: Rosyna <email@hidden>
References: 
 >Re: FSSpec from NSString Problems (From: Rosyna <email@hidden>)

  • Prev by Date: Re: NSMatrix/NSCell silliness
  • Next by Date: Re: FSSpec from NSString Problems
  • Previous by thread: Re: FSSpec from NSString Problems
  • Next by thread: Re: FSSpec from NSString Problems
  • Index(es):
    • Date
    • Thread