Alexander Ljungberg
3fa47ee9ec
Fixed: [_CPImageAndTextView setDimsImage] wasn't working right due to checking if a non existent variable equalled the current value.
2010-05-26 20:09:01 -04:00
Alexander Ljungberg
e811895570
Fixed: CPObjectController keyPathsForValuesAffectingX typos.
2010-05-26 20:06:32 -04:00
Alexander Ljungberg
47e890b8e1
Fixed table row drag view when using bindings.
2010-05-26 20:02:12 -04:00
Alexander Ljungberg
ef9d2d1775
Reverse update value binding when control editing stops, not only when the action fires. This causes tabbing out of a text field to update the binding source. Based on the description of the bindings option NSContinuouslyUpdatesValueBindingOption this is the right thing to do: if NSContinuouslyUpdatesValueBindingOption is on, update on every character; "otherwise the update is made only when the user interface item resigns as the responder."
2010-05-26 19:51:51 -04:00
Alexander Ljungberg
be13a14330
Hack to make [textField bind:CPValueBinding ...] work. Without this, any observed change leads to a [textField setValue:X forKey:"value"] which in turn leads to a direct ivar access changing the value in textField._value. This means the text field has no idea the value changed and it doesn't update to show the new text. I'm not sure what the right solution should be here. It looks like _replacementKeyPathForBinding should play into this and change the end result to [textField setValue:X forKey:"objectValue"] which would work fine. But currently _replacementKeyPathForBinding applies to the observed key path, not the bound one.
2010-05-26 19:51:28 -04:00
Alexander Ljungberg
45a2bcb71a
Fixed bindings problems where 'nil' would be transformed into @"". Also, CPIsNilTransformerName and its inverse couldn't work because any nil value was immediately returned without transformations being applied. Full complement of unit tests included, based on Cocoa empirical testing.
...
Fixed with CPKeyValueBinding: the CPValueTransformerNameBindingOption option would cause an exception due a missing import.
2010-05-26 19:50:35 -04:00
Alexander Ljungberg
218919a8ba
Fixed: exposed bindings on CPObject would not appear in CPObject subclasses.
2010-05-26 19:48:27 -04:00
Alexander Ljungberg
79ed04e403
Fixed: including CPValueTransformer.j causes an infinite loop due to the recent Objective-J (mis?) behavior that every class has to inherit from CPObject. Also, the transformer map failed to initialize properly with the existing setup code for reasons which were not immediately clear. Moving the initialization to a regular + initialize method eliminated the problem.
...
Fixed: CPKeyValueBinding.j would throw an exception if a named value transformer option was specified, due to CPValueTransformer.j not being imported.
2010-05-26 19:47:45 -04:00
Alexander Ljungberg
3c995fe17b
Fixed: the array controller remove method mapped selection indexes to the content array instead of the arranged objects, leading to the wrong objects being removed as filters and sort descriptors were effectively ignored.
2010-05-26 19:45:13 -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
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
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
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
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
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
6c1a6a2033
made _sendPartialString send it's action down the responder chain
2010-05-25 11:47:52 -07:00
Alexander Ljungberg and Francisco Ryan Tolmasky I
49ae82d96a
Fixed: CPToolbar validateVisibleItems was called validateVisibleToolbarItems.
2010-05-24 15:53:12 -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
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
Thomas Ingham and Ross Boucher
7519b7ab63
Added hud style for circular slider knob thing.
2010-05-24 10:09:39 -07:00
Thomas Ingham and Ross Boucher
aaf5c7581c
Moved the non-highlighted version of the knob down one more freaking pixel.
2010-05-24 10:09:39 -07:00
Thomas Ingham and Ross Boucher
ce4e8dc8b7
Moved knobs down a pixel.
2010-05-24 10:09:39 -07:00
Thomas Ingham and Ross Boucher
5c2e6c8ed8
Matched up the knob images to those in the file and split them into HUD as well.
2010-05-24 10:09:39 -07:00
Thomas Ingham and Ross Boucher
4020f9c6c2
Adding images for sliders.
2010-05-24 10:09:38 -07:00
Thomas Ingham and Ross Boucher
16bf635aca
Added images that I missed because git doesn't do recursive directories.
2010-05-24 10:09:38 -07:00
Thomas Ingham and Ross Boucher
99bc5a018e
Added segmented control graphics and theme method to support HUD style displays for CPSegmentedControl.
2010-05-24 10:09:38 -07:00
klaaspieter and Randall Luecke
08b06b8632
implemented CPCoding support for CPSortDescriptor and made CPTableColumn decode it's _sortDescriptorPrototype
...
Conflicts:
AppKit/CPTableColumn.j
Tools/nib2cib/NSTableColumn.j
2010-05-20 22:51:01 -05:00
Randall Luecke
79e8b6e242
Added API for changing tableview selection color and source list gradient.
2010-05-20 19:43:01 -05:00
Klaas Pieter Annema and Randall Luecke
6a34329765
fixed a typo where CPThemeStateSelectedDataView was set on the header view of a table column
2010-05-20 13:42:50 -05:00