Re: [Pyobjc-dev] instrumentObjcMessageSends
Brought to you by:
ronaldoussoren
|
From: Ronald O. <ron...@ma...> - 2008-01-07 07:10:51
|
On 6 Jan, 2008, at 21:21, Jon Christopher wrote: > Many apologies if this is the wrong place to ask this question, but I > couldn't find anywhere else. > > I'd like to call the instrumentObjcMessageSends(YES) function which > is part of the objc runtime so that I can log all objc-messages, but I > can't figure out how to access it from python. > This function has the same effect as NSObjCMessageLoggingEnabled=TRUE > (see http://developer.apple.com/technotes/tn2004/tn2124.html) > > I can create and call objc classes, but instrumentObjcMessageSends is > a free function. I'd appreciate any pointers as to how to call this > function, or runtime free functions in general, for that matter. You cannot easily call runtime functions. Because instrumentObjcMessageSends isn't a public API I won't add it to PyObjC. It should be possible to call it using objc.loadBundleFunctions, but I don't have time to look into that right now. Ronald > > > Thanks, > Jon > > BTW, the all the links from the sourceforge examples page > http://pyobjc.sourceforge.net/examples/index.php are broken. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |