From: Ronald O. <ron...@ma...> - 2015-05-06 11:06:17
|
> On 06 May 2015, at 08:11, Eric Fernance <er...@di...> wrote: > > 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? You need to ensure that the private framework is loaded, otherwise the class won’t be available. Ronald > > 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 > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |