Alexander Ljungberg
5ff8ddf5f3
Fewer bindings debug log messages.
2010-05-26 19:44:14 -04:00
Alexander Ljungberg
8b2350fb22
Optimized table data loading when using bindings for the cell values. A special code path in the CPTableColumn's prepareDataView:forRow: method turns a O(n) operation into O(1) where n is the number of items in the model array.
2010-05-26 19:42:59 -04:00
Alexander Ljungberg
15be647c16
Fixed: the CPArrayController code to remove out of bounds selections failed to remove the last selected item if the new arrangedObjects array was empty.
2010-05-26 19:42:40 -04:00
Alexander Ljungberg
8a8af0e4a9
Fixed: CPArrayController could get out of bounds selections if a call to rearrangeObjects caused objects to disappear from the arranged set.
2010-05-26 19:41:34 -04:00
Alexander Ljungberg
4ff89eab04
Fixed: CPArrayController would throw out of bounds exceptions when its content array was shortened and items at the end were selected.
...
Extended avoid empty selection support so that when the last item is selected and deleted, the (previously) second to last item is selected instead. Works as expected with multiple selections.
2010-05-26 19:40:55 -04:00
Alexander Ljungberg
ec032cb739
Performance fix: willChange and didChange for CPArrayController's selectionIndexes were sent doubly.
2010-05-26 19:40:24 -04:00
Alexander Ljungberg
2b287a85e5
CPArrayController now pushes new selections to the bound model for selectionIndexes. Using this, support for selectsInsertedObjects was added.
...
This commit also fixes a performance problem where calling setSelectionIndexes with a selection equal to the one already active caused a selection update.
2010-05-26 19:39:42 -04:00
Alexander Ljungberg
6ea2b4e0e2
Fixed: the CPArrayController addObject: optimization for fast index updates would never fire with a nil _filterPredicate, causing rearrangeObjects to be called needlessly.
2010-05-26 19:39:09 -04:00
Alexander Ljungberg
f7e2e9c2ee
Fixed: the _CPObservableArray init method used by CPArrayController did not properly initialize _observationProxies.
...
Fixed: _CPObservableArray's insertObject:atIndex: caused an infinite loop.
2010-05-26 19:37:28 -04:00
Alexander Ljungberg
5463e5ca55
Fixed: CPArray insertObject:inArraySortedByDescriptors: did not return the index into which the object was inserted. This would have broken CPArrayController's addObject code.
2010-05-26 19:36:26 -04:00
Alexander Ljungberg
396d4218f0
Fixed: CPArrayController keys ContentArray, ArrangedObjects, Selection, SelectionIndex, SelectedObjects, CanRemove and CanSelectNext could not be observed properly because their dependency declarations had a repeated typo.
2010-05-26 19:30:06 -04:00
Alexander Ljungberg
e3a07845d4
Implemented CPTableView clickedRow for use in double-action.
2010-05-26 19:24:36 -04:00
Alexander Ljungberg
341a42bddd
DataSource delegate method tableView:objectValueForTableColumn:row is optional if bindings are used to provide data for the table view.
2010-05-26 19:20:38 -04:00
Alexander Ljungberg
573444e640
Removed a bindings console.log statement incompatible with browsers without a debug console.
2010-05-26 19:14:03 -04:00
Alexander Ljungberg
ed9c6d7959
Added reverse sort tests for CPArray insertObject:inArraySortedByDescriptors:.
2010-05-26 19:11:58 -04:00
Alexander Ljungberg
ed2c65dd6f
Merge branch 'master' of git://github.com/280north/cappuccino into bindings-merge
...
Conflicts:
AppKit/CPTableView.j
Foundation/CPArray+KVO.j
Foundation/CPArray.j
2010-05-26 19:05:04 -04:00
cacaodev and Ross Boucher
0062caafdf
CPObject -implementsSelector:
2010-05-26 10:06:49 -07:00
Stephen Ierodiaconou and Ross Boucher
b98f0b1427
Apply style rules to Foundation
2010-05-26 08:53:05 -07:00
Stephen Ierodiaconou and Ross Boucher
b6a3d2b283
Remove import of deprecated CPLog.j
...
Remove deprecated CPLog.j
2010-05-26 08:52:59 -07:00
Stephen Ierodiaconou and Ross Boucher
0d848e3d93
Add test on self in init of CPAttributedString
2010-05-26 08:52:46 -07:00
Stephen Ierodiaconou and Ross Boucher
065197980b
CPCoder typo fixes
2010-05-26 08:51:58 -07:00
Thomas Ingham and Ross Boucher
2a36488db7
Added new artwork and theme style for the button.
...
Matching fonts to segctl.
2010-05-26 08:51:36 -07:00
Tom Robinson
5a77c19791
Silence tools output during tests (press, flatten, capp gen)
2010-05-25 16:24:29 -07:00
Tom Robinson
eae3270385
Add bcomm hook to LoadTimeTest
2010-05-25 14:09:10 -07:00
Randall Luecke
daee101005
Merge branch 'master' of git://github.com/280north/cappuccino
2010-05-25 14:05:24 -05:00
Klaas Pieter Annema and Randall Luecke
b32d503d65
implemented CPTableColumn isHidden nib2cib support
2010-05-25 14:03:14 -05:00
Klaas Pieter Annema and Randall Luecke
ca7af88c59
- updated tablecolumn nib2cib to support new row selection theme state
...
- nib2cibed the MainMenu.xib in the tablecib example to update it's cib to the changes
2010-05-25 14:03:04 -05:00
Klaas Pieter Annema and Randall Luecke
6bd8e96ac0
fixed a bug where the table header would attempt to set content inset on a _CPImageAndTextView
2010-05-25 14:02:52 -05:00
Klaas Pieter Annema and Randall Luecke
d06d69966b
used content inset in stead of frame offset to properly place the table header text
2010-05-25 14:02:41 -05:00
Klaas Pieter Annema and Randall Luecke
004829ac9e
table header view nib2cib updates
2010-05-25 14:02:30 -05:00
Randall Luecke
0009603098
removed the border from _CPCornerView (Aristo)
...
Conflicts:
Tests/Manual/TableCibTest/Resources/MainMenu.cib
2010-05-25 14:01:42 -05:00
Klaas Pieter Annema and Randall Luecke
5479c77ae6
changed the table header view image height to 23.0
2010-05-25 14:00:46 -05:00
Klaas Pieter Annema and Randall Luecke
1f97616f3c
override default IB tableview grid colors with aristo's
2010-05-25 14:00:34 -05:00
Klaas Pieter Annema and Randall Luecke
e65fcdab42
- changed default dataview styling to aristo
...
- updated nib2cib support for CPTableColumn
2010-05-25 14:00:22 -05:00
Klaas Pieter Annema and Randall Luecke
428f5a656d
changed default table view alternating row colors to aristo
2010-05-25 14:00:10 -05:00
Klaas Pieter Annema and Ross Boucher
0315ad38f9
- fixed CPKeyedUnarchiver decodeBytesForKey attempting to access nil (or undefined) data
...
- improved CPSearchField nib2cib support
2010-05-25 11:48:03 -07:00
Klaas Pieter Annema and Ross Boucher
6c1a6a2033
made _sendPartialString send it's action down the responder chain
2010-05-25 11:47:52 -07:00
Klaas Pieter Annema and Ross Boucher
2a630a7210
made CPDictionary call [super valueForKey:] on keys prefixed with @
2010-05-25 11:40:45 -07:00
Randall Luecke
359a29874b
Return a copy instead of the array itself.
2010-05-24 22:44:14 -05:00
Randall Luecke
f9da7f73b3
Added missing pathComponents method to CPURL.
2010-05-24 21:59:37 -05:00
Alexander Ljungberg and Francisco Ryan Tolmasky I
49ae82d96a
Fixed: CPToolbar validateVisibleItems was called validateVisibleToolbarItems.
2010-05-24 15:53:12 -07:00
Francisco Ryan Tolmasky I
fbd23fb2c3
Removed unecessary var.
...
Reviewed by me.
2010-05-24 15:45:54 -07:00
Paul Baumgart and Francisco Ryan Tolmasky I
252b258159
fix CFDictionary.containsValue and CFDictionary.countOfValue and add tests to prove it
2010-05-24 15:45:21 -07:00
Alexander Ljungberg and Francisco Ryan Tolmasky I
dfcef3ca2d
Fixed: [CPPopUpButton itemTitles] didn't work.
2010-05-24 15:45:07 -07:00
Thomas Ingham and Ross Boucher
3d4a33d373
Re-preflight on the image assets resulting in 24px tall images in each case. This is done by cutting the top edge close (well into the aliased edge on top.)
...
Added defs for the horizontal and vertical sliders.
2010-05-24 15:31:04 -07:00
Ross Boucher
28397e672e
fix a misnamed variable.
...
closes #673 .
2010-05-24 11:28:57 -07:00
Alexander Ljungberg and Ross Boucher
bbbf439028
Fixed: contentBounds not var'ed in _verticalScrollerDidScroll. Whitespace cleanup.
2010-05-24 11:21:23 -07:00
Alexander Ljungberg and Ross Boucher
3c5dab1f34
Implemented CPCoding for CPButton imageDimsWhenDisabled. Fixed a problem where setImageDimsWhenDisabled:NO would not cause a redraw even if the image was previously dimmed.
2010-05-24 11:17:25 -07:00
Saikat Chakrabarti and Ross Boucher
e8499e1751
Adding grab/grabbing cursors for Firefox.
2010-05-24 10:15:29 -07:00
Ross Boucher
be26ab9201
CPDictionary is now KVO compliant.
2010-05-24 10:09:39 -07:00