Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jan 10, 2013, 04:36 PM   #1
ruchi830
macrumors newbie
 
Join Date: Jan 2013
call custom objc class from python

In my Xcode project, I have python and .m files. I need to use a class from my .m in python. I cannot figure out how to call the class. The objc.lookUpClass does not work. I don't know how to add the class because it is not in a separate bundle. Or do I have to convert my objc to python?

Also I need to access ServiceManagement/ServiceManagement.h from python. Is this possible?
ruchi830 is offline   0 Reply With Quote
Old Jan 14, 2013, 08:33 PM   #2
Mac_Max
macrumors 6502
 
Join Date: Mar 2004
I don't know the specifics of what your dev environment is, but I presume its some sort of Python/Cocoa bridge. Do the python source files have a matching .h header? If so you could always import the source file there and your framework should handle the rest.
Mac_Max is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 06:26 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC