Changeset [27cf82e1d34a42032b0b1a1e4c36be1c716a05be] by Brian Donovan

April 13th, 2011 @ 06:18 PM

Use our internal setter while initializing to make sure arrangedObjects is properly observable.

This fixes both the case I reported earlier (#1174) and a new issue I found where attempting to bind to a CPArrayController's arrangedObjects before calling -setContent: would throw this exception:

Uncaught CPInvalidArgumentException: Unsupported method on CPArray

The reason for this exception is that the old implementation set arrangedObjects to an instance of CPJavaScriptArray, whereas the new one will set it to a _CPObservableArray.
https://github.com/280north/cappuccino/commit/27cf82e1d34a42032b0b1...

Committed by Brian Donovan

  • M AppKit/CPArrayController.j
New-ticket Create new ticket

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.

Shared Ticket Bins