Loading Classes from Private Frameworks with objc.lookUpClass

Eric Fernance <[email protected]> Wed, 6 May 2015 16:11:28 +1000
Newsgroups gmane.comp.python.pyobjc.devel
Message-ID <[email protected]>
Hi Folks,

I feel like I’ve been banging my head against a wall and looking for a couple of pointers.

I have seen examples of writing mail.app plugins where the private class is loaded using objc.lookUpClass.  For some reason I seem completely unable to get this to work.

I have tested from the command line using a variety of class names and any of the classes from public frameworks seem to load just fine (i.e NSOjbect etc).  When I try to load the MVMailBundle class using:

objc.lookUpClass('MVMailBundle’)

I receive an error: objc.nosuchclass_error: MVMailBundle

System details are: Mac OSX 10.10.2
Python: 2.7
PyObjC: PyObjC 3.0.4 

Is there somewhere that I need to switch on or enable the support for loading classes from private frameworks?

Any guidance would be really appreciated.

Cheers,
Eric.

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y

_______________________________________________
Pyobjc-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyobjc-dev