Re: Calling Objective C functions with ctypes
eryksun <[email protected]> Thu, 19 Mar 2015 11:46:41 -0500
| Newsgroups | gmane.comp.python.ctypes |
|---|---|
| Message-ID | <CACL+1au=EpjvCbJ9txk2dK7A-19BeuCC3WnQV-GUdkDDGmM-+g@mail.gmail.com> |
On Thu, Mar 19, 2015 at 11:11 AM, Timothy W. Grove <[email protected]> wrote: > pool = objc.objc_msgSend(pool, objc.sel_registerName('init')) Python 3 uses wide-character strings (i.e. wchar_t *). Try replacing all string literals with bytes literals, e.g. objc.sel_registerName(b'init'). ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/