Changeset [7bf2297125b330da80b7bab2137cad0e77ab98f6] by Brian Donovan
November 2nd, 2010 @ 10:24 PM
-[CPArrayController setContent:] would interpret nil as [nil].
When initializing a CPArrayController with a value that is not an array setContent: would make it an array by replacing value with [value]. This is consistent with how Cocoa does it, but it should first check to make sure that the content is not nil. If it is, the sensible thing to do (and what Cocoa does) is to replace it with an empty array.
This commit also includes a missing import to make
CPArrayControllerTest run without error.
https://github.com/280north/cappuccino/commit/7bf2297125b330da80b7b...
Committed by Brian Donovan
- M AppKit/CPArrayController.j
- M AppKit/CPObjectController.j
- M Tests/AppKit/CPArrayControllerTest.j
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
The Cappuccino Web Framework, including AppKit, Foundation, and Objective-J.