• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Bindings and 'failed assertion'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: / two questions /
  • Next by Date: Re: sin(4*pi^2*t) 0 >= t <= pi/3, can you read this ?
  • Previous by thread: Re: / two questions /
  • Next by thread: OO Code Style question
  • Index(es):
    • Date
    • Thread