[futurebasic] [FB] When a Toolbox function returns NULL

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : August 2011 : Group Archive : Group : All Groups

From: Ken Shmidheiser <kshmidheiser@...>
Date: Mon, 8 Aug 2011 23:10:15 -0400
Max wrote:

>Seems to me that the answer to getting the creation dates, 
>modification dates, etc., have already been solved internally in the 
>FB editor code.


Indeed there are several ways to get this Finder information, but not 
only is the MDItem approach easy, it's much more comprehensive and 
easily transferable to Cocoa. I would guess that FB uses older 
functions to obtain its info.

It was very easy to miss, but take a look at Bernie's code posted 
here last May:


[Note: The MDItem Toolbox definitions in Bernie's code are not needed 
in FB 5.5 since the header is now included.]

Using this code, open an image taken with a digital camera and look 
at the metadata that's available. Try to parse that out using 

Also, I should mention that my earlier code example should have used 
@"kMDItemFSCreationDate" and @"kMDItemFSContentChangeDate".