Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > FSSpec in Cocoa?

FSSpec in Cocoa?
Thread Tools
Dedicated MacNNer
Join Date: Jun 2000
Location: Dundas, Ontario, Canada
Status: Offline
Reply With Quote
Feb 10, 2002, 09:47 PM
 
Hello,

I need to make use of some Carbon calls from a Cocoa application I am writing. However, I am having a problem getting to work since the FSSpec record I need fails on creation every time.

Is there some trick to created FSSpecs from Cocoa? I anticipated problems since the file system is viewed in a slightly different way from Carbon as opposed to Cocoa but I thought that enough hacking would make it work. Here I am after several hours of errors "-37", "-35", "-120" and now just crashing on the FSMakeFSSpec call without returning any error code.

Any help?
Jeff.
Spectral Class
"Shedding Light on Innovation"
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Feb 13, 2002, 03:21 PM
 
There's a function for creating an FSRef from a CFURL (NSURL is tolll-free bridged to CFURL, btw). See CFURL.h. From what, you should be able to easily create an FSSpec.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:40 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2