[Pyobjc-dev] NSString.drawAtPoint_withAttributes_()
Brought to you by:
ronaldoussoren
From: Dinu G. <gh...@da...> - 2003-09-12 15:34:03
|
Hi, in order to use print some text on an NSView I found out I need to do first this to have access to the drawAtPoint_withAttributes_() which is defined in some NSStringAddition category or so of AppKit: from Foundation import NSString from AppKit import * First question is: how to do this without importing *? Then I get some string like this (not sure if a Python string would magically do as well): s = NSString.stringWith...(...) but when calling s.drawAtPoint_withAttributes_((x, y), {...}) I get this error: AttributeError: 'objc.pyobjc_unicode' object has no attribute 'drawAtPoint_withAttributes_' Has anybody tried writing a string that way to a view before? Is this a bug? I'm on PyObjC 1.0b1. Regards, Dinu -- Dinu C. Gherman ...................................................................... "Some are born great, some achieve greatness, and some hire public relations officers." (Daniel J. Boorstin) |