call custom objc class from python

Discussion in 'Mac Programming' started by ruchi830, Jan 10, 2013.

  1. macrumors newbie

    Joined:
    Jan 10, 2013
    #1
    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?
     
  2. macrumors 6502

    Joined:
    Mar 8, 2004
    #2
    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.
     

Share This Page