Changeset [b5776445ec195bbf9b56f00fe84def6ef14e2930] by Alexander Ljungberg

September 2nd, 2012 @ 12:08 PM

Significantly optimise CPToolbar validation.

Avoid sending notifications about toolbar items' enabled state needlessly.

Tiling is expensive, but even if the toolbar item ignores redundant setEnabled: calls, the cost of notifications alone can really add up when there are many toolbar items.
https://github.com/cappuccino/cappuccino/commit/b5776445ec195bbf9b5...

Committed by Alexander Ljungberg

  • M AppKit/CPToolbar.j
  • M AppKit/CPToolbarItem.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