Bindings and 'failed assertion'
Bindings and 'failed assertion'
- Subject: Bindings and 'failed assertion'
- From: J Nozzi <email@hidden>
- Date: Thu, 17 Jun 2004 13:04:48 -0400
List:
I have a read-only table view that used a data source that I am now
trying to switch to bindings. The data source contained an NSArray of
NSDictionary objects. Each dictionary contains things like "name" and
"status", all strings. All was working just fine for several versions
of my app.
To begin the 'bindings upgrade', I converted the NSArray and its
dictionaries to mutable objects. (NSMutableArray and
NSMutableDictionary) and the data in the list is fine, upon NSLog()
inspections. The array of dictionaries is the same, just mutable.'
I connected "myArrayController" to the array controller in IB. I did
not yet bind any table columns to the controller. But when I call the
following:
[myArrayController setContent:[dataSource getFilteredList]];
... I get the following:
2004-06-17 12:59:47.265 MyApp[10534] *** Assertion failure in
-[NSTextFieldCell _objectValue:forString:],
AppKit.subproj/NSCell.m:1131
2004-06-17 12:59:47.274 MyApp[10534] Exception raised during posting of
notification. Ignored. exception: Invalid parameter not satisfying:
aString != nil
2004-06-17 12:59:47.453 MyApp[10534] *** Assertion failure in
-[NSTextFieldCell _objectValue:forString:],
AppKit.subproj/NSCell.m:1131
2004-06-17 12:59:47.461 MyApp[10534] Exception raised during posting of
notification. Ignored. exception: Invalid parameter not satisfying:
aString != nil
Calls to getFilteredList return a valid mutable array of mutable
dicts, all populated correctly every time. Any ideas??
- J
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.