Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

How does MacFSRef work? (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: Re: several addesses in mailto and Lion
Next thread: Re: cocoa isContextualClick


Re: Stumper question - Leopard Crashes   -   Garth Hjelte
  How does MacFSRef work?   -   Jean-Luc Arnaud

How does MacFSRef work?
Date: 02.08.13 16:46 (Fri, 02 Aug 2013 17:46:45 +0200)
From: Jean-Luc Arnaud
Hi all,

Trying to replace MacDirId by MacFSRef, I found that using:

Dim f As FolderItem
Dim MB As MemoryBlock

f=GetOpenFolderItem("")

If f<>Nil Then
MBðMacFSRef
TextArea1.TextðNativePath+" - MacDirID :
"+Str(f.MacDirID)+Chr(9)+"MacFSRef : "+Str(MB.Int32Value(12))
End If

I got ever the same value for MacDirId and MacFSRef.
But I noticed, in addition, that all files in the same folders have the
MacDirId and the same MacFSRef.

Looking at the MB content, I noticed that there was values into the
first 12 bytes. What do they stand for?

Is my use of MacFSRef correct? I thought that MacFSRef was a unique
reference to a file (or folder)?

TIA for any help.

Jean-Luc

_______________________________________________
Unsubscribe by sending a message to:
<<email address removed>>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>