Crash in NSTextValueBinder dealloc when closing a window
Crash in NSTextValueBinder dealloc when closing a window
- Subject: Crash in NSTextValueBinder dealloc when closing a window
- From: Philip Dow <email@hidden>
- Date: Wed, 27 Jun 2007 15:42:51 -0500
I'm running into a problem with a very simple setup. When I close a
document's window in a core data document based application, the app
crashes as the binders are deallocated.
The document nib file contains five items: file owner, first
responder, window with three views (outline, table custom), a tree
controller and an array controller. The tree controller automatically
fetches its content from the managed object context, while the array
controller is bound to the tree's selection.
On the interface side of things the outline view's table column is
bound to the tree controller, as are the table view's columns to the
array controller. Nothing spectacular here, a super simple setup.
I can populate the managed object context, add and remove items, no
problems. I can select items in the outline view and the table
updates accordingly. Everything works as expected. However, when I
close the document's window, whether I have populated the moc or not,
I get the following crash:
#0 0x90a59387 in objc_msgSend
#1 0x003b68a0 in ??
#2 0x937c0283 in -[_NSBindingInfo dealloc]
#3 0x9080e094 in CFRelease
#4 0x90811930 in __CFArrayReleaseValues
#5 0x9080e169 in _CFRelease
#6 0x93501546 in -[NSBinder _dealloc]
#7 0x93501504 in -[NSValueBinder _dealloc]
#8 0x9352aaa3 in -[NSTextValueBinder _dealloc]
#9 0x93501446 in -[NSBinder dealloc]
#10 0x927d38cf in NSPopAutoreleasePool
#11 0x93280e28 in -[NSApplication run]
#12 0x93274d2f in NSApplicationMain
#13 0x00216ffc in main at main.m:13
I've traced the problem to the single table column in the outline
view. It's value is bound to the tree controller, arranged objects,
key: title. If I unbind the table column's value, the crash no longer
occurs. Modifying the binding options has no effect.
Can anyone shed some light on this problem? I'm certainly not
releasing or autoreleasiing this object anywhere in my code. Am I
missing some special cleanup that needs to happen as the document is
released?
-Phil
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden