[Pythonmac-SIG] ctypes and OS X CF types?

Nicholas Riley njriley at uiuc.edu
Mon Oct 22 19:08:13 CEST 2007


On Mon, Oct 22, 2007 at 08:26:37AM -0700, Bill Janssen wrote:
> I'm trying to call the Spotlight system from Python, and I thought I'd
> try using the ctypes support in Python 2.5 to use the MDQuery
> framework.  However, it seems that I'll have to unearth and write
> ctypes definitions for a number of Core Foundation C++ types, in order
> to do that.  Has anyone already done this?  Created ctypes definitions
> for the standard CF types, and made them available somewhere?

CoreFoundation is C, not C++.  That said, it'd probably be easier to
use PyObjC with NSMetadataQuery instead.

-- 
Nicholas Riley <njriley at uiuc.edu> | <http://www.uiuc.edu/ph/www/njriley>


More information about the Pythonmac-SIG mailing list