• 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: SMB CIFS AFP ETC... Server Path URL question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SMB CIFS AFP ETC... Server Path URL question


  • Subject: Re: SMB CIFS AFP ETC... Server Path URL question
  • From: "Daniel Brieck Jr." <email@hidden>
  • Date: Thu, 9 Aug 2007 23:01:42 -0400

On Aug 9, 2007, at 10:03 PM, Nathan Duran wrote:

Should I be using objective-c to use the FSCopyURLForVolume()
function and others mentioned . Assuming that it is a function, it
looks very much like a C, C++ function. Is that a correct assumption?

Did you look at the prototype?

/*
* FSCopyURLForVolume()
*
* Discussion:
* This routine returns a copy of the url for the passed in volume.
* The caller is responsible for releasing the CFURL later.
*
* Mac OS X threading:
* Thread safe since version 10.3
*
* Parameters:
*
* vRefNum:
* FSVolumeRefNum of the target volume.
*
* url:
* The url associated with the target volume.
*
* Availability:
* Mac OS X: in version 10.3 and later in CoreServices.framework
* CarbonLib: not available in CarbonLib 1.x
* Non-Carbon CFM: not available
*/


extern OSStatus FSCopyURLForVolume(FSVolumeRefNum vRefNum, CFURLRef *url)
AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER;


--
Nathan S. Duran
Principal
KHI Ltd. Co., LLC
www.khiltd.com



Yes, from "File.h" it was not much help.

extern -- I am not sure what that means guessing connecting to some external app or file

OSStatus -- I think that is the return type, not to sure how to use it yet, but this is the type the result will be that will have to be converted into a string by the CFURLGetString() command. Hoping to get "cifs://MSHOME;DANIELBR@IBM_NETVISTA/MYVIDEOS" as a result of some processing.


FSVolumeRefNum vRefNum -- not sure what this is.

But I might be able to get it from FSGetVolumeForDiskID() but then that asks for a vRefNum and diskID and it goes on and on, and I am not getting anywhere. Feels like it is getting over complicated passing the same stuff around for the most part as parameters.


CFURLRef *url --- Is this some form of the path "file://localhost/ Volumes/MYVIDEOS/"


However, as a good thing there are some docs on CFURL so I may be able to figure out that. http://developer.apple.com/documentation/ CoreFoundation/Reference/CFURLRef/Reference/reference.html


What should I be focusing on as a minimum? Objective-c , Core Foundation/ services, all of the above, etc to use those functions. New to programming Apps for OS 10 . Started Development of Mac os 10 apps using AppleScript Studio. I have some experience with C / C+ + and plan on moving to Objective-C full time at a later date. But for now I want to try to get My AppleScript Studio program working.


Thank you,

Daniel J. Brieck Jr.


_______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: SMB CIFS AFP ETC... Server Path URL question
      • From: Quinn <email@hidden>
  • Prev by Date: Re: SMB CIFS AFP ETC... Server Path URL question
  • Next by Date: Re: SMB CIFS AFP ETC... Server Path URL question
  • Previous by thread: Re: SMB CIFS AFP ETC... Server Path URL question
  • Next by thread: Re: SMB CIFS AFP ETC... Server Path URL question
  • Index(es):
    • Date
    • Thread