[Pyobjc-dev] [ pyobjc-Bugs-836247 ] NSWindow.contentRectForFrameRect_styleMask_ not a class meth
Brought to you by:
ronaldoussoren
From: SourceForge.net <no...@so...> - 2003-11-05 03:56:58
|
Bugs item #836247, was opened at 2003-11-05 03:56 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=836247&group_id=14534 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Zachery Bir (zbir) Assigned to: Nobody/Anonymous (nobody) Summary: NSWindow.contentRectForFrameRect_styleMask_ not a class meth Initial Comment: Trying the following snippet of code: def showPrefPane(self, pane, sender): windowFrame = NSWindow.contentRectForFrameRect_styleMask_( NSWindow, self.window().frame(), self.window().styleMask()) newWindowHeight = NSHeight(pane.frame()) if self.window().toolbar().isVisible(): newWindowHeight += NSHeight( self.window().toolbar()._toolbarView().frame()) newWindowFrame = NSWindow.frameRectForContentRect_styleMask_( NSWindow, NSMakeRect(NSMinX(windowFrame), NSMaxY(windowFrame) - newWindowHeight, NSWidth(windowFrame), newWindowHeight), self.window().styleMask()) self.window().setContentView_(pane) self.window().setFrame_display_animate_(newWindowFra me, YES, self.window().isVisible()) ********** Host: gorilla.urbanape.com Date/Time: 2003-11-04 22:52:17 -0500 OS Version: 10.3 (Build 7B85) Command: python (/Users/zbir/Applications/ ZopeEditManager.app/Contents/MacOS/python) PID: 613 Thread: 0 Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x0000000c Thread 0 Crashed: #0 0x90831388 in objc_msgSend_stret (objc_msgSend_stret + 8) #1 0x92dcff08 in -[NSWindow contentRectForFrameRect: styleMask:] (-[NSWindow contentRectForFrameRect: styleMask:] + 160) #2 0x00428974 in ffi_call_DARWIN (ffi_call_DARWIN + 208) #3 0x00428368 in ffi_call (ffi_darwin.c:401) #4 0x00426f08 in ObjC_FFICaller (libffi_support.m:1088) #5 0x0041a12c in objcsel_call (selector.m:594) #6 0x95f4a8d0 in PyObject_Call (PyObject_Call + 48) #7 0x95fa9ba8 in PyEval_GetFuncDesc (PyEval_GetFuncDesc + 2268) #8 0x95fa9598 in PyEval_GetFuncDesc (PyEval_GetFuncDesc + 716) #9 0x95fa6c64 in PyEval_EvalCode (PyEval_EvalCode + 9568) #10 0x95fa7e30 in PyEval_EvalCodeEx (PyEval_EvalCodeEx + 2128) #11 0x95f5f354 in PyFunction_SetClosure (PyFunction_SetClosure + 3436) #12 0x95f4a8d0 in PyObject_Call (PyObject_Call + 48) #13 0x0041b13c in pysel_call (selector.m:997) #14 0x95f4a8d0 in PyObject_Call (PyObject_Call + 48) #15 0x95fa9ba8 in PyEval_GetFuncDesc (PyEval_GetFuncDesc + 2268) #16 0x95fa9598 in PyEval_GetFuncDesc (PyEval_GetFuncDesc + 716) #17 0x95fa6c64 in PyEval_EvalCode (PyEval_EvalCode + 9568) #18 0x95fa7e30 in PyEval_EvalCodeEx (PyEval_EvalCodeEx + 2128) #19 0x95f5f354 in PyFunction_SetClosure (PyFunction_SetClosure + 3436) #20 0x95f4a8d0 in PyObject_Call (PyObject_Call + 48) #21 0x0041b13c in pysel_call (selector.m:997) #22 0x95f4a8d0 in PyObject_Call (PyObject_Call + 48) #23 0x95fa9ba8 in PyEval_GetFuncDesc (PyEval_GetFuncDesc + 2268) #24 0x95fa9598 in PyEval_GetFuncDesc (PyEval_GetFuncDesc + 716) #25 0x95fa6c64 in PyEval_EvalCode (PyEval_EvalCode + 9568) #26 0x95fa7e30 in PyEval_EvalCodeEx (PyEval_EvalCodeEx + 2128) #27 0x95f5f354 in PyFunction_SetClosure (PyFunction_SetClosure + 3436) #28 0x95f4a8d0 in PyObject_Call (PyObject_Call + 48) #29 0x0041b024 in pysel_call (selector.m:979) #30 0x95f4a8d0 in PyObject_Call (PyObject_Call + 48) #31 0x004104ac in PyObjC_CallPython (class-builder.m: 1410) #32 0x0042524c in method_stub (libffi_support.m:416) #33 0x004286ac in ffi_closure_helper_DARWIN (ffi_darwin.c:699) #34 0x00428a44 in ffi_closure_ASM (ffi_closure_ASM + 116) #35 0x92df240c in -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] (- [NSIBObjectData nibInstantiateWithOwner: topLevelObjects:] + 920) #36 0x92ee3ab4 in loadNib (loadNib + 252) #37 0x92e3ae64 in +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] (+[NSBundle(NSNibLoading) _loadNibFile:nameTable: withZone:ownerBundle:] + 744) #38 0x92eb9b58 in +[NSBundle(NSNibLoading) loadNibFile:externalNameTable:withZone:] (+[NSBundle(NSNibLoading) loadNibFile: externalNameTable:withZone:] + 156) #39 0x92ec095c in -[NSWindowController loadWindow] (- [NSWindowController loadWindow] + 204) #40 0x92e75128 in -[NSWindowController window] (- [NSWindowController window] + 92) #41 0x92f31adc in -[NSWindowController showWindow:] (-[NSWindowController showWindow:] + 36) #42 0x00428974 in ffi_call_DARWIN (ffi_call_DARWIN + 208) #43 0x00428368 in ffi_call (ffi_darwin.c:401) #44 0x00426f2c in ObjC_FFICaller (libffi_support.m: 1097) #45 0x0041a010 in objcsel_call (selector.m:575) #46 0x95f4a8d0 in PyObject_Call (PyObject_Call + 48) #47 0x95fa9ba8 in PyEval_GetFuncDesc (PyEval_GetFuncDesc + 2268) #48 0x95fa9598 in PyEval_GetFuncDesc (PyEval_GetFuncDesc + 716) #49 0x95fa6c64 in PyEval_EvalCode (PyEval_EvalCode + 9568) #50 0x95fa7e30 in PyEval_EvalCodeEx (PyEval_EvalCodeEx + 2128) #51 0x95f5f354 in PyFunction_SetClosure (PyFunction_SetClosure + 3436) #52 0x95f4a8d0 in PyObject_Call (PyObject_Call + 48) #53 0x0041b024 in pysel_call (selector.m:979) #54 0x95f4a8d0 in PyObject_Call (PyObject_Call + 48) #55 0x004104ac in PyObjC_CallPython (class-builder.m: 1410) #56 0x0042524c in method_stub (libffi_support.m:416) #57 0x004286ac in ffi_closure_helper_DARWIN (ffi_darwin.c:699) #58 0x00428a44 in ffi_closure_ASM (ffi_closure_ASM + 116) #59 0x92e779d0 in -[NSApplication sendAction:to:from:] (-[NSApplication sendAction:to:from:] + 108) #60 0x92ead1bc in -[NSMenu performActionForItemAtIndex:] (-[NSMenu performActionForItemAtIndex:] + 392) #61 0x92ef1ac4 in -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] (- [NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 104) #62 0x92ef83f4 in -[NSMenu performKeyEquivalent:] (- [NSMenu performKeyEquivalent:] + 260) #63 0x92ed7420 in -[NSApplication _handleKeyEquivalent:] (-[NSApplication _handleKeyEquivalent:] + 292) #64 0x92df4eec in -[NSApplication sendEvent:] (- [NSApplication sendEvent:] + 2652) #65 0x92dfd754 in -[NSApplication run] (-[NSApplication run] + 576) #66 0x92eb9a1c in NSApplicationMain (NSApplicationMain + 464) #67 0x006beda8 in objc_NSApplicationMain (_AppKit.m: 116) #68 0x95fa94a8 in PyEval_GetFuncDesc (PyEval_GetFuncDesc + 476) #69 0x95fa6c64 in PyEval_EvalCode (PyEval_EvalCode + 9568) #70 0x95fa7e30 in PyEval_EvalCodeEx (PyEval_EvalCodeEx + 2128) #71 0x95fa97dc in PyEval_GetFuncDesc (PyEval_GetFuncDesc + 1296) #72 0x95fa9580 in PyEval_GetFuncDesc (PyEval_GetFuncDesc + 692) #73 0x95fa6c64 in PyEval_EvalCode (PyEval_EvalCode + 9568) #74 0x95fa7e30 in PyEval_EvalCodeEx (PyEval_EvalCodeEx + 2128) #75 0x95fa4734 in PyEval_EvalCode (PyEval_EvalCode + 48) #76 0x95fc85f0 in PyRun_FileExFlags (PyRun_FileExFlags + 228) #77 0x95fc7668 in PyRun_SimpleFileExFlags (PyRun_SimpleFileExFlags + 444) #78 0x95fd1ec0 in Py_Main (Py_Main + 1996) #79 0x00003c78 in start (start + 444) #80 0x00003aec in start (start + 48) PPC Thread State: srr0: 0x90831388 srr1: 0x0200f030 vrsave: 0x00000000 cr: 0x40224242 xer: 0x20000004 lr: 0x92dcff08 ctr: 0x90831380 r0: 0x92dcff08 r1: 0xbfffa150 r2: 0xa2dc1535 r3: 0xbfffa190 r4: 0x0000000c r5: 0x9086ee4c r6: 0x42200000 r7: 0x443cc000 r8: 0x43c80000 r9: 0x42a60000 r10: 0x00000003 r11: 0xa2dc1fb4 r12: 0x90831380 r13: 0x0123d060 r14: 0x00000000 r15: 0x00791558 r16: 0x00000000 r17: 0x00000000 r18: 0x00000000 r19: 0x00000000 r20: 0x00000000 r21: 0x003054c0 r22: 0x00000003 r23: 0x0037412e r24: 0xbfffaf2c r25: 0x00366f84 r26: 0x00000000 r27: 0x01148920 r28: 0x00000003 r29: 0xa2dfce3c r30: 0xbfffa1e4 r31: 0x92dcfe68 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=114534&aid=836247&group_id=14534 |