Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ruchi830

macrumors newbie
Original poster
Jan 10, 2013
4
0
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?
 

Mac_Max

macrumors 6502
Mar 8, 2004
404
1
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.