FROM : Jonathan Sick
DATE : Sun Jan 26 21:17:23 2003
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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
DATE : Sun Jan 26 21:17:23 2003
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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
| Related mails | Author | Date |
|---|---|---|
| Jonathan Sick | Jan 26, 10:24 | |
| Rosyna | Jan 26, 11:13 | |
| Jonathan Sick | Jan 26, 21:17 | |
| Rosyna | Jan 26, 21:37 | |
| Sascha Kujawa | Jan 26, 21:56 | |
| Mike Shields | Jan 26, 22:00 | |
| Lorenzo Puleo | Jan 29, 18:00 |






Cocoa mail archive

