Alexander Ljungberg
92cb69b623
Merge branch 'CPArrayControllerFixes' of https://github.com/cacaodev/cappuccino into cacaodev-CPArrayControllerFixes
2011-01-20 22:14:17 -03:00
Francisco Ryan Tolmasky I
ec330a1090
Fix for pop up not reflecting changes in individual menu items.
...
Reviewed by me.
2011-01-20 09:07:04 -08:00
cacaodev
59cc590b51
CPArrayController -setContent: fixed a bug where objects where not rearranged if clearsFilterPredicateOnInsertion == YES and filterPredicate == nil.
2011-01-19 19:26:01 +01:00
Francisco Ryan Tolmasky I
9796f5d5d7
Fix CPPopUpButton menu support.
...
- Added enumerateObjectsUsingBlock: to CPArray
- Fixed a remaining case of [] being used instead of objectAtIndex: in CPMutableArray.
- Added KVO support for menu items array in menus.
- Changed CPPopUpButton to use KVO to sync up with menu instead of notifications.
- Removed extra menu encoding in CPPopUpButton.
- Removed extra mainMenu object from CPApplication.
- Use setters in CPResponder instead of direct ivar access in initWithCoder:.
Closes #298 .
Closes $1059.
Reviewed by me.
2011-01-17 01:31:15 -08:00
Alexander Ljungberg
6b8c85df7c
Additional testing for outline view archiving.
2011-01-14 19:59:25 -03:00
Alexander Ljungberg
0240c648aa
Encode delegate when archiving CPBrowser.
2011-01-14 14:36:57 -03:00
Alexander Ljungberg
c4ee83e4c1
Basic CPBrowser CPCoding support.
2011-01-14 13:34:18 -03:00
Alexander Ljungberg
61b0cbb1af
Test CPBrowser data loading.
2011-01-14 12:42:38 -03:00
Alexander Ljungberg
b7bdec189a
Fixed: when an outline view node was expanded, selections below it would not stick to their items if the newly expanded node also had previously expanded children.
2011-01-14 12:10:52 -03:00
Alexander Ljungberg
2a27a87ae6
Fixed: CPOutlineView could not be archived with CPCoding. Closes #1093 .
...
This fixes the exception "[_CPOutlineViewTableViewDataSource encodeWithCoder:] unrecognized selector sent to instance".
2011-01-13 22:18:05 -03:00
Alexander Ljungberg
6bc109f7fc
Optimised: outline view expandItem:expandChildren:YES sent repeated selection change notifications.
2011-01-13 20:51:43 -03:00
Alexander Ljungberg
2d603df83c
Fixed: outline view's collapseItem sent up selection notifications in triplicate, each of them at the wrong time.
2011-01-13 20:03:06 -03:00
Alexander Ljungberg
dcf440396d
Fixed: the outline view was temporarily inconsistent to outside observers while expanding a node.
...
In particular, a selection did change notification was sent before the rows the selection referred to had had a chance to be loaded.
2011-01-13 18:57:36 -03:00
Klaas Pieter Annema
e7dbd5a5cc
add test for CPButton setObjectValue: behavior
2011-01-10 09:32:18 +01:00
Derek Hammer
f3066594fe
Tests for Pull Request 1085
2011-01-08 22:12:20 -06:00
Klaas Pieter Annema
3d5232b308
give objects a chance to change their binder class
...
- make every object calling getBinding:forObject: aware of this change
- implement _CPCheckBoxValueBinder to handle binding to the value of a checkbox Closes : #1083
- re-implement CPTextField's behavior for controller markers using the new binder class
- disabled some tests that are not compliant with Cocoa
2011-01-07 14:14:19 +01:00
Klaas Pieter Annema
eee1dcef13
restore the original placeholder when unbinding
2011-01-07 14:14:19 +01:00
Alexander Ljungberg
c53fff058b
Preserve selection when expanding items in an outline view.
2011-01-05 21:25:57 -03:00
Alexander Ljungberg
c836bd48e0
Preserve selection when collapsing items in an outline view.
...
This fixes the error where if a row was selected below a certain item and that item was collapsed, the row selection would remain fixed in place even while the item it was highlighting moved upwards.
2011-01-05 21:09:19 -03:00
Alexander Ljungberg
ec675a5662
Deselect outline view items when their ancestor is collapsed.
2011-01-05 20:41:26 -03:00
Alexander Ljungberg
02e72493ef
Unit test outline view data loading and item collapse.
2011-01-05 20:40:30 -03:00
Klaas Pieter Annema
c87cb4bacd
properly fix CPThemeStateNormal behavior
...
- revert the previous fix
- explicitly check for CPThemeStateNormal in hasThemeState:
- update the test case
2011-01-05 12:30:14 +01:00
Klaas Pieter Annema
b6ea6530b7
hasThemeState: always returned no for normal state
2011-01-05 10:44:50 +01: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
Klaas Pieter Annema
de1ebe6319
add test case for previous fix
2010-12-22 10:49:02 +01:00
Johannes Fahrenkrug and Francisco Ryan Tolmasky I
3c3b7ff61c
Addition of applications tests and CPCollectionView selection fix.
...
Reviewed by me.
2010-12-18 10:34:32 -08:00
Ross Boucher
ab083a3baf
Clean up several flaws in CPTabView:
...
- should not force empty space above and below, but only where the tabs are
- box should fill frame when no tabs are present
- ivars should be prefixed with underscore
- not sure about the current background color code, may revisit
2010-12-15 15:48:42 -08:00
Alexander Ljungberg
244ff0d846
Finished unit test based on Cocoa example With And Without Bindings 02.
2010-12-14 23:57:51 +01:00
Alexander Ljungberg
8ef7f07195
Fixed: CPArrayController's addObject and CPArray's insertObject:inArraySortedByDescriptors:.
...
CPArray insertObject:inArraySortedByDescriptors: now quickly inserts objects at the end of the array if no sort descriptors are specified.
CPArrayController initialises its sort descriptors to an empty array.
Fixed: array controller's addObject added objects to the arranged objects array in a different order than in the content array if no sort descriptor was set.
2010-12-14 23:33:14 +01:00
Alexander Ljungberg
f36d8224a6
Unit test based on Cocoa example With And Without Bindings 01.
...
This test exercises loading of an array controller with bindings to a table and a content array, plus various editing actions.
2010-12-14 15:05:30 +01:00
Alexander Ljungberg
c5c2a80af9
More unit tests on 01_WithoutBindings.
2010-12-14 13:40:44 +01:00
Alexander Ljungberg
b9dfd2a795
Merge branch 'master' of github.com:280north/cappuccino
2010-12-14 12:36:53 +01:00
Klaas Pieter Annema
003dcface0
make selectedTag accessor public again
...
This reverts commit cfee75b6e9 .
2010-12-13 22:16:06 +01:00
Alexander Ljungberg
0e05f1a8b7
Merge branch 'master' of github.com:280north/cappuccino
2010-12-13 13:39:41 +01:00
Klaas Pieter Annema
5a340804fe
remove failing reverse set selected tag test
2010-12-13 10:55:10 +01:00
Klaas Pieter Annema
0463af26b3
Merge branch 'CPPopUpButton-selectedTag-binding' of https://github.com/eventualbuddha/cappuccino into eventualbuddha-CPPopUpButton-selectedTag-binding
2010-12-13 10:11:46 +01:00
Francisco Ryan Tolmasky I
d69f46f7ee
More capp_linting.
...
Reviewed by me.
2010-12-09 13:45:29 -08:00
Ross Boucher
ac6ccc3257
Merge branch 'master' of https://github.com/dasto/cappuccino into dasto-master
...
Conflicts:
Tests/Foundation/CPKeyValueCodingTest.j
2010-12-09 12:59:11 -08:00
Ross Boucher
901f3fe63b
Merge branch 'nib2cib-bindings-options' of https://github.com/cacaodev/cappuccino into cacaodev-nib2cib-bindings-options
2010-12-08 14:11:23 -08:00
Brian Donovan
79c2edca2d
Allow binding to CPPopUpButton's selectedTag.
2010-12-03 16:12:22 -08:00
Alexander Ljungberg
f3f0bf3524
Unit test based on Cocoa example With And Without Bindings 01.
2010-11-26 17:12:46 -03:00
Alexander Ljungberg
b9ca57a921
Merge branch 'master' of github.com:280north/cappuccino
2010-11-26 15:57:48 -03:00
Alexander Ljungberg
a528a503d3
Typo fix.
2010-11-26 13:37:58 -03:00
Klaas Pieter Annema
8345788e59
disable value caching in CPControllerSelectionProxy
...
More information here http://groups.google.com/group/objectivej-dev/browse_thread/thread/c100f16095073332 .
2010-11-24 14:27:59 +01:00
cacaodev
5bec411bdc
Fix for nib2cibing bindings options.
2010-11-23 19:38:03 +01:00
Klaas Pieter Annema
34339fbcd9
several bindings / KVC fixes
...
- setValue:forKeyPath will now get call setValue:forKeyPath again on the value of the first part of the key path
- override valueForKeyPath: and valueForKey: in CPObjectController's CPControllerSelectionProxy to return controller markers when appropriate
- override setValue:forKeyPath: and setValue:forKey: in CPObjectController's CPControllerSelectionProxy to bypass possible controller markers
This commit also removes previous hacks for compound paths and adds test cases for the errors. All this is related to issue #967 .
2010-11-23 14:18:22 +01:00
Klaas Pieter Annema
b49dc87a86
Merge branch 'fix-967'
2010-11-23 12:16:57 +01:00
Klaas Pieter Annema
221fad6c3e
improve _setCurrentValueIsPlaceholder logic
2010-11-23 12:03:00 +01:00
Alexander Ljungberg
741c235f08
Fix strange cib loading path caused by non-bundliness of Tests/AppKit.
2010-11-19 13:04:59 -03:00