[Pyobjc-dev] Casting between ctypes and pyobjc
Brought to you by:
ronaldoussoren
From: Kunal P. <kun...@gm...> - 2012-11-08 01:41:56
|
I am using ctypes to call SMJobCopyDictionary which returns a CFDictionaryRef. Is there a way to cast that to an NSDictionary such that I can use the regular pyobjc APIs? For example, cfdictionary = SMJobCopyDictionary(...) job_description = cast(cfdictionary, pyobjc_dictionary) program_arguments = job_description['ProgramArguments'] ... |