On Jan 25, 2007, at 1:33 PM, Aliacta wrote:
I'm trying to build a declare, but it's not a function, it's a
method, i.e. there's not supposed to be any return value and I
can't find the RB syntax for it. Also it says I can't pass arrays...
What I have so far is below and gives me a hard crash:
Sub TextChange()
Dim i As Integer
Declare function MDQuerySetSearchScope Lib "Carbon" (QueryRef as
integer, Directories as CFStringRef, Optionbits as integer) as integer
If not Query.Completed then Query.Stop
Query.Query ="kMDItemDisplayName = ""*"+me.Text+"*""wc"
i = MDQuerySetSearchScope(Query.Handle,"",0)
Query.Run
'void MDQuerySetSearchScope (
'MDQueryRef query,
'CFArrayRef scopeDirectories,
'OptionBits scopeOptions
');
End Sub
'Directories' should be an array. Does anybody have an example on
how to build a CFStringRef that represents a directory?
Any pointers would be appreciated.
Thanks,
Marc
Put a Unix absolute shell path in it (at least thats what appears to
be expected) if you look at this)
http://www.cocoabuilder.com/archive/message/cocoa/2005/12/23/153124
_______________________________________________
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>