Changeset [3947bd65f2718408c8d505e2ae95b6f1627ef937] by Francisco Ryan Tolmasky I

December 24th, 2010 @ 11:01 PM

Reimplementation of CPSet as a class-cluster, and better set support for valueForKey:

  1. CPSet and CPMutableSet are now abstract super classes that create appropriate concrete subclasses behind the scenes.
  2. CPSet subclassers need only implement -count, -member:, and -objectEnumerator.
  3. CPMutableSet subclassers need only implement -count, -member:, -objectEnumerator:, -addObject:, and removeObject:.
  4. Added more CPSet tests.
  5. Added _CPKeyValueCodingSet which subclasses CPSet for set returns in valueForKey:.

Reviewed by me.
https://github.com/280north/cappuccino/commit/3947bd65f2718408c8d50...

Committed by Francisco Ryan Tolmasky I

  • M Foundation/CPCountedSet.j
  • M Foundation/CPKeyValueCoding.j
  • M Foundation/CPSet+KVO.j
  • M Foundation/CPSet.j
  • M Tests/Foundation/CPSetTest.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