[Pyobjc-dev] Loading Classes from Private Frameworks with objc.lookUpClass
Brought to you by:
ronaldoussoren
|
From: Eric F. <er...@di...> - 2015-05-06 07:09:02
|
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.
|