Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread Display Modes
Old Jan 10, 2013, 04:36 PM   #1
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
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

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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
How do I reference a subview in a custom UIView class? moonman239 iPhone/iPad Programming 1 Nov 7, 2013 01:38 PM
Referencing a child class in a parent class, good or bad? SAIRUS iPhone/iPad Programming 11 Aug 28, 2013 11:59 AM
How to create property thats also a custom made class? tradingjam Mac Programming 4 Aug 12, 2012 03:51 PM
Difference between Public class and private class. zijianz iPhone/iPad Programming 4 Jun 29, 2012 09:29 PM

Forum Jump

All times are GMT -5. The time now is 11:45 AM.

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

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