Casting between ctypes and pyobjc
Kunal Parmar <[email protected]> Wed, 7 Nov 2012 17:41:55 -0800
| Newsgroups | gmane.comp.python.pyobjc.devel |
|---|---|
| Message-ID | <CAB2uBphRw1PZr6BJ0LALC=FZfccfOiEFMvyEO3bWspTebDKx6A@mail.gmail.com> |
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'] ... ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov _______________________________________________ Pyobjc-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pyobjc-dev