[Pyobjc-dev] [ pyobjc-Bugs-746115 ] NSBezierPath.elementAtIndex_associatedPoints_ parameter 2
Brought to you by:
ronaldoussoren
From: SourceForge.net <no...@so...> - 2003-05-30 14:25:45
|
Bugs item #746115, was opened at 2003-05-30 16:25 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=114534&aid=746115&group_id=14534 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Martina Oefelein (oefe) Assigned to: Nobody/Anonymous (nobody) Summary: NSBezierPath.elementAtIndex_associatedPoints_ parameter 2 Initial Comment: Python 2.2 (#1, 07/14/02, 23:25:09) [GCC Apple cpp-precomp 6.14] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from AppKit import * >>> b = NSBezierPath.bezierPathWithOvalInRect_(((0,0),(1,1))) >>> for i in range(b.elementCount()): ... (e, pts) = b.elementAtIndex_associatedPoints_(i) ... print e, pts ... Traceback (most recent call last): File "<stdin>", line 2, in ? TypeError: Need 2 arguments, got 1 According to Apple's documentation, associatedPoints is an output parameter, but PyObjC 0.9, treats it as input (of type NSPoint *). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=114534&aid=746115&group_id=14534 |