[Pyobjc-dev] Proper way to call NSDivideRect?
Brought to you by:
ronaldoussoren
From: Michael M. <mic...@gm...> - 2007-12-18 02:46:17
|
Hi, I wanted to call NSDivideRect, which returns two NSRects by reference: FOUNDATION_EXPORT void NSDivideRect(NSRect inRect, NSRect *slice, NSRect *rem, CGFloat amount, NSRectEdge edge); I followed the online docs for how to treat out params in calls, and came up with this: lowerEdgeRect, ignoreme = NSDivideRect(self.currentCellFrame(), 1.0, lowerRectEdge) This worked with no complaints on 10.4, but on 10.5 with system python, I get this: /Users/mmccrack/Products/Debug/Incoming.app/Contents/Resources/ActionSearchResultsWindowController.py:143: DeprecationWarning: Not all arguments to an Objective-C function are present lowerEdgeRect, ignored = NSDivideRect(self.currentCellFrame(), 1.0, lowerRectEdge) It still works, but the warning bothers me. What's going on there? Thanks, -mike -- Michael McCracken UCSD CSE PhD Candidate research: http://www.cse.ucsd.edu/~mmccrack/ misc: http://michael-mccracken.net/wp/ |