Antoine Mercadal
71c0ba63ca
Merge pull request #2318 from cacaodev/CPTableView-columnbinding
...
FIXED: Exception when rows were removed in a table with binded columns.
2015-02-25 11:25:53 -08:00
cacaodev
808411bc0b
FIXED: Exception when rows were removed in a table with binded columns.
...
Before this fix, the CPTableColumn binder was not correctly reloading
the table when the number of rows changed. Now we reload fully the
dataviews when the number of rows changes. If no rows are
inserted/deleted, there is an optimization: we just need to reload the
objectValues and leave the dataviews untouched.
With Test in Tests/AppKitCPTableViewTest.j
Fixes #2317
2015-02-24 16:15:20 +01:00
cacaodev
f248788d14
Test for #2310 fix, CPTableView whitespace.
...
Note: It seems that CPThemeStateKeyWindow cannot be tested in the
console. A manual test with multiple windows and table views exists in
Manual/TableTest/OldTest/
2015-02-15 19:29:29 +01:00
cacaodev
2e25ef6f81
Merge remote-tracking branch 'upstream/master' into CPTableView-enumerateRows
...
Conflicts:
AppKit/CPTableHeaderView.j
AppKit/CPTableView.j
Tests/AppKit/CPTableViewTest.j
2015-01-25 17:25:32 +01:00
Alexandre Wilhelm
8efb6f8808
Test: added unit test for registered notification for the tableView
2014-12-02 16:39:07 -08:00
cacaodev
2dccd2f30b
NEW: ojtest for method - (void)getColumn:(Function)columnRef row:(Function)rowRef forView:(CPView)aView
...
This internal method is used for editing and public methods rowForView: and columnForView
2014-09-18 19:23:16 +02:00
cacaodev
3a97db804f
Merge remote-tracking branch 'upstream/master' into CPTableView-enumerateRows
...
Possible regression from #fe260a8
Regression: -reloadData does not reload views any more even if the table is empty (see CPOutlineViewCibTest).
BUG: -removeTableColumn: error.
Conflicts:
AppKit/CPOutlineView.j
AppKit/CPTableHeaderView.j
AppKit/CPTableView.j
2014-04-18 18:12:55 +02:00
Alexandre Wilhelm
e822966464
Fixed: removed unused test case
2013-12-10 11:00:47 -08:00
Alexandre Wilhelm
7b86465d7b
New : Added protocols CPTableViewDelegate and CPTableViewDataSource
...
This PR adds protocols CPTableViewDelegate and CPTableViewDataSource
Unit test in Tests/AppKit/CPTableViewTest.j
2013-12-08 17:48:41 -08:00
Martin Carlberg
e511638962
Fixed: Cleaned up return and parameter types on methods.
2013-11-24 22:21:56 +01:00
cacaodev
7b1c696810
Fixed: CPTableViewTest: -deselectAll should send 1 CPtableViewSelectionDidChangeNotification, not 2.
...
Checked in cocoa.
Moved a failing test to the end of the method so it does not shadow other tests.
2013-04-12 19:48:07 +02:00
Antoine Mercadal
71f502a8e8
Fix some ivar masking in tests
2013-01-10 23:04:12 -08:00
Alexander Ljungberg
59ad8499df
Refs #1676 . Whitespace.
2012-09-24 17:05:35 +01:00
Johan Stille
02a885eb09
Added test for initially hidden table column fix.
2012-09-24 14:22:39 +02:00
Alexander Ljungberg
31ab70d6fc
Refs #1530 . Fixed: table views could not be interacted with if they couldn't become the first responder.
2012-08-01 18:59:54 +01:00
Alexander Ljungberg
2ca3f657f9
Refs #1530 . Fix CPTableViewTest to work regardless of #1530 decision.
2012-07-13 13:24:43 +01:00
cacaodev
539a8f0ca9
An OJTest for the table view's content binding
2012-06-22 21:59:41 +02:00
Blair Duncan
74431972d8
added missing LOG math global and replaced any math. with correspoinding global
2012-05-10 08:55:19 -04:00
Alexander Ljungberg
90514bd3cb
Test table view notifications for deselectAll. Verify absence of CPTableViewSelectionIsChangingNotification when changing programmatically.
2012-03-18 15:21:09 +00:00
Alexander Ljungberg
a1cf9f1cd4
Table view cell layout test.
2012-03-09 15:36:21 +00:00
Alexander Ljungberg
8fdb872605
Clean up.
2012-02-08 13:48:43 +00:00
Alexander Ljungberg
35b2b5263c
Test table view inline cell editing in general, and the next fix in particular.
2010-12-31 14:59:24 -03:00
Alexander Ljungberg
d7316918a3
Refactor test data source in table view test.
2010-12-31 12:56:56 -03:00
Alexander Ljungberg
31d57b0c37
Optimise table view selection notification.
...
Before the table view would send a CPTableViewSelectionDidChangeNotification whenever the number of rows in the table decreased, regardless of if any selected rows actually became deselected. This could be a needless performance drain in the common case where other program components update and reload on selection changes in a table or outline view.
2010-11-18 15:00:46 -03:00
Alexander Ljungberg
22a185b52e
Fixed CPTableViewTest which was both broken and unfinished.
2010-11-18 14:09:18 -03:00
Francisco Ryan Tolmasky I
3b761ec55e
Fixed a bug in the new CPIndexSet when adding indexes to the back of the set. Also added a test to handle this case. Also moved Table visual tests into Tests/ folder.
...
Reviewed by me.
2009-08-22 02:51:37 -07:00
aburkhalter
7ca3473b64
failing test for issue #112 , fix for said issue of _doubleAction ReferenceError
2009-06-06 17:51:32 -07:00