[Pyobjc-dev] problems building editable tableviews
Brought to you by:
ronaldoussoren
|
From: Aaron S. <me...@aa...> - 2002-10-17 16:13:01
|
Hi there,
I've got a PyObjC app that has a table view working great, but as soon
as I add a definition for tableView_setObjectValue_forTableColumn_row_,
my app crashes as soon as try to edit one of the rows and before my
Python function gets called. Here's the stacktrace:
Date/Time: 2002-10-17 10:40:30 -0500
OS Version: 10.2.1 (Build 6D52)
Host: slithy.local.
Command: Memesh
PID: 10833
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000004
Thread 0 Crashed:
#0 0x9068ba4c in objc_msgSend
#1 0x00508694 in pythonify_c_value (objc_support.m:566)
#2 0x00574598 in meth_imp_211 (register.m:18542)
#3 0x932d744c in -[NSTableView textDidEndEditing:]
#4 0x907eaf7c in _nsNotificationCenterCallBack
#5 0x90168b18 in _postNotification
#6 0x90166238 in _CFNotificationCenterPostLocalNotification
#7 0x9331519c in -[NSTextView(NSPrivate) _giveUpFirstResponder:]
#8 0x932f7a98 in -[NSTextView doCommandBySelector:]
#9 0x931d83f8 in
-[NSKeyBindingManager(NSKeyBindingManager_MultiClients)
interpretEventAsCommand:forClient:]
#10 0x931ce84c in -[NSTSMInputContext interpretKeyEvents:]
#11 0x93360a08 in -[NSView interpretKeyEvents:]
#12 0x93301e08 in -[NSTextView keyDown:]
#13 0x9336e63c in -[NSWindow sendEvent:]
#14 0x930ce328 in -[NSApplication sendEvent:]
#15 0x01ae78e0 in -[NSApplication(CocoaGestures)
cocoaGesturesSendEvent:] (CocoaGestures.m:201)
#16 0x930ca524 in -[NSApplication run]
#17 0x930d2598 in NSApplicationMain
#18 0x00002b14 in pyobjc_main (main.m:39)
#19 0x00002b58 in main (main.m:44)
#20 0x00002560 in _start (crt.c:267)
#21 0x000023e0 in start
Thread 1:
#0 0x90074328 in mach_msg_trap
#1 0x90006670 in mach_msg
#2 0xc00076cc in __ape_internal
#3 0xc0000dd0 in __ape_agent
#4 0x90021428 in _pthread_body
PPC Thread State:
srr0: 0x9068ba4c srr1: 0x0200f030 vrsave: 0x00000000
xer: 0x00000000 lr: 0x00508694 ctr: 0x9068ba3c mq: 0x00000000
r0: 0x00508694 r1: 0xbfffe640 r2: 0x0007ca10 r3: 0x00000004
r4: 0x906aca0c r5: 0x0063aa78 r6: 0x00000011 r7: 0x00000002
r8: 0x00000002 r9: 0x0063a3e4 r10: 0x00000009 r11: 0x00638cd0
r12: 0x9068ba3c r13: 0xa3097d70 r14: 0x00b3e0f0 r15: 0x00000001
r16: 0x01c44820 r17: 0x00000000 r18: 0x00000002 r19: 0x00000000
r20: 0x00c2f7a0 r21: 0x6f7dbe5f r22: 0xa3075a5c r23: 0xbfffecc0
r24: 0xa3075a5c r25: 0x00c2f7a0 r26: 0x00000010 r27: 0x906dcf88
r28: 0x00c2f7a0 r29: 0x00bab0f0 r30: 0xbfffe640 r31: 0x0050836c
Thanks for any help you can provide.
Also, what's the policy on threading? I expect my app to do some
intense networking and indexing, and I don't want it to become
unresponsive while it's doing that. I tried importing "threading", but
when I tried to do something in another thread, it spewed out thousands
of no autoreleasepool -- leaking! messages.
Thanks again for such an awesome tool!
--
Aaron Swartz [http://www.aaronsw.com] "Curb your consumption," he said.
|