On Jan 26, 2007, at 4:37 PM, Norman Palardy wrote:
On Jan 26, 2007, at 3:10 PM, Aliacta wrote:
Gotta love void pointers
It looks like you can get back a pointer to any one of several
types depending on what attributes you asked for (and by
extension what type it is)
A browse through the Spoltlight Query Programming Ref regarding
MDItemRef is what leads me to this conclusion and I could easily
be wrong
That's been my conclusion too so far and at this stage I'm not
very concerned about the data type. I'd already be happy if I were
able to just get to the data and put it in an RB string or
variant. I'd worry later about interpreting that.
If you've asked for an attribute that has a CFString value then you
I think you get a pointer to a CFString back as the result
If you've asked for one that has a CFDate as a result you get a
pointer to a CFDate
So it matters immensely what attribute you asked for and what kind
of value that attribute has.
You can treat a CFDate as as CFString and have it work
That said I'm not sure how you'll turn a pointer to a CF*whatever*
into something in RB
You won't have to. Just declare the return type as CFStringRef and
let REALbasic do it for you :)
-Jon
--
Jonathan Johnson
[EMAIL PROTECTED]
REAL Software, Inc.
REAL World 2007 Conference
May 9 - 11 in Austin, Texas
<http://www.realsoftware.com/realworld>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>