Brian Donovan
0ce115bc9c
Ensure observeValueForKeyPath:ofObject:change:context is called consistently.
...
During the "normal" callback for new and old values, the ofObject:
parameter passed to the observer is the original receiver of the
addObserver:forKeyPath:options:context: call, but that isn't the case
with the call caused by the CPKeyValueObservingOptionInitial option.
This commit uses _targetObject, the receiver of the addObserver:...
call, rather than self, the _CPKVOProxy.
2010-10-05 07:45:43 -07:00
Klaas Pieter Annema
a99e976610
Merge branch 'CPControl-bridge' of http://github.com/aparajita/cappuccino into aparajita-CPControl-bridge
2010-10-04 10:44:03 +02:00
Klaas Pieter Annema
9b4807de26
Merge branch 'CPButton-copy-bounds' of http://github.com/aparajita/cappuccino into aparajita-CPButton-copy-bounds
2010-10-04 10:39:32 +02:00
Alexander Ljungberg
56a0184258
Fixed a missing comma in the token field theme descriptor.
2010-10-03 15:39:17 -04:00
Alexander Ljungberg
b64390077a
Remove margin from token fields without bezel so that the tokens line up with text labels at the same X coordinate.
2010-10-03 15:31:48 -04:00
Alexander Ljungberg
e7e9c24aaa
Fix accidental globals in CPTokenField, convert tabs to spaces.
2010-10-03 00:35:57 -04:00
Alexander Ljungberg
9eba3c0cec
Make theme work for token fields without bezeled:NO. Demo of auto suggest in test app.
2010-10-03 00:29:29 -04:00
Alexander Ljungberg
69b30df8e6
Fixed: with more than one token field, the separator character for all fields would be bound to that of the first field.
2010-10-03 00:23:05 -04:00
Alexander Ljungberg
ca2aab1198
Visual CPTokenField test application.
2010-10-02 22:45:05 -04:00
Alexander Ljungberg
1b45f621a7
Created and implemented a first draft Aristo theme for CPTokenField.
2010-10-02 22:41:38 -04:00
Alexander Ljungberg
421a51f008
Made CPTokenField themeable separately from CPTextField since the placeholder insets must be handled differently.
2010-10-02 19:38:12 -04:00
Alexander Ljungberg
cce21e7e87
Fixed: forgot to define a theme name for the CPTokenField close button.
2010-10-02 19:38:01 -04:00
Alexander Ljungberg
f6236ca317
Fixed: CPTokenField setObjectValue:nil did not clear the token field.
2010-10-02 19:37:48 -04:00
Alexander Ljungberg
77e10c94e9
Fixed: if setValue was called to clear a token field, the placeholder message would not appear.
2010-10-02 19:37:37 -04:00
Alexander Ljungberg
38cc1943ee
Reverse binding support for deleting tokens using the delete button. Fixed: if the last token was deleted using the close button without the token field being the first responder, the placeholder message would not appear.
2010-10-02 19:37:31 -04:00
Alexander Ljungberg
3b1047e97d
Implemented tokenizingCharacterSet property for CPTokenField. This changes the default tag separator to "," and allows tags with spaces. The previous behaviour can be restored using [field setTokenizingCharacterSet:[CPCharacterSet characterSetWithCharactersInString:@" "]].
2010-10-02 19:37:17 -04:00
Alexander Ljungberg
34c1a1ce10
Fixed: if a CPTokenField was a subview of a container not at the top at the window, such as is often the case with a toolbar, the autocomplete view of CPTokenField would appear offset downwards.
...
Also switched the background of the autocomplete view to a simple menu style for now since the other graphics were not available.
2010-10-02 19:37:08 -04:00
Alexander Ljungberg
b0e3e38791
Reverse bindings support for when tokens are deleted through the close button.
2010-10-02 19:36:55 -04:00
Alexander Ljungberg
124a63736f
Made CPTokenField themeable. Todo: the autocomplete drop-down is still hardcoded and Aristo style images are needed.
2010-10-02 19:36:24 -04:00
Alexander Ljungberg
656e0eb28e
Whitespace cleanup in preparation for the next merge.
2010-10-02 19:19:51 -04:00
Alexander Ljungberg
688c46c793
Fixed some typos in the previous CPTokenField commit.
2010-10-02 15:36:35 -04:00
Alexander Ljungberg
ee2228a83c
Fixed: if [CPTokenField setObjectValue:X] was called while the token field was the first responder, the input value would be set to a string version of the object value due to CPTextField's setObjectValue method.
2010-10-02 15:36:29 -04:00
Klaas Pieter Annema and Alexander Ljungberg
9f4dd3c2b8
added various hacks to make the cptokenfield work with the new enstore admin
2010-10-02 15:36:24 -04:00
Klaas Pieter Annema and Alexander Ljungberg
c80a28077a
fixed some tokenfield issues
2010-10-02 15:36:19 -04:00
Klaas Pieter Annema and Alexander Ljungberg
47c631c58e
added CPTokenField
2010-10-02 15:36:11 -04:00
Alexander Ljungberg
ed4235d2f9
Fixed: setting any binding on a text field - even on an attribute like 'hidden' - would clear its placeholder string.
2010-10-02 14:42:06 -04:00
Alexander Ljungberg
16e9fce5b5
Unit test exposing a new bug: setting a binding on a text field causes it to lose its placeholder string.
2010-10-02 14:38:34 -04:00
Alexander Ljungberg
2e22a0d5e8
Merge branch 'master' of github.com:280north/cappuccino
2010-10-01 17:30:17 -04:00
Alexander Ljungberg
1ae31c9374
Style fixes.
2010-10-01 17:28:55 -04:00
Klaas Pieter Annema
973c43843d
improve multiple selection login in CPCollectionView
2010-10-01 11:31:59 +02:00
Alexander Ljungberg
90709156c6
Merge branch '_CPImageAndTextView-tweaks' of http://github.com/aparajita/cappuccino
2010-09-30 23:52:27 -04:00
Alexander Ljungberg
0d15e59d0a
CPSlider code cleanup.
2010-09-30 23:51:12 -04:00
Aparajita Fishman
60fcb24159
De-lint, whitespace cleanup, typos
2010-09-30 21:14:47 -04:00
Aparajita Fishman
a175e71906
- Fixed type of _textSize.
...
- Changed NULL to nil.
2010-09-30 17:30:58 -04:00
Aparajita Fishman
c3b5dc747a
CPButton bezelRectForBounds and contentRectForBounds were modifying the bounds parameter in place without copying it.
2010-09-30 17:27:06 -04:00
Klaas Pieter Annema
e527c7e19f
fix another bug introduced in my last commit
2010-09-30 18:58:40 +02:00
Klaas Pieter Annema
790327fbe8
revert d18bba6b03, it had unexpected side effect
2010-09-30 18:44:00 +02:00
Klaas Pieter Annema
d18bba6b03
make sure CPScrollView always sets up it's corner and header view when initializing from coder
2010-09-30 18:40:45 +02:00
Aparajita Fishman
0a752be53c
Moved methods defined by BRIDGE into real method declarations so they will be included in doxygen docs, lint cleanup.
2010-09-30 08:37:36 -04:00
Klaas Pieter Annema
b221cc1853
properly decode allows multiple selection in CPCollectionView
2010-09-30 13:54:34 +02:00
Klaas Pieter Annema
2935651578
only nib2cib bundle if bundle path is set in nib
2010-09-30 13:13:18 +02:00
Paul Baumgart
ca2ae22f15
Fix non-ASCII characters in CPDictionary.j and CPFormatter.j
2010-09-29 18:21:10 -07:00
Mike Fellows
1c597eb0df
Fix regression in CPBox's setBorder
2010-09-29 00:05:15 -07:00
Alexander Ljungberg
28dd74444f
Fixed a string of accidental globals in CPScroller.
2010-09-28 19:50:20 -04:00
Alexander Ljungberg
28cf834e0b
Merge branch 'CGGradientCreateWithColorComponents-location-fix' of http://github.com/eventualbuddha/cappuccino
2010-09-28 19:29:46 -04:00
Alexander Ljungberg
4dc102a3cf
Applied coding standards.
2010-09-28 19:00:59 -04:00
Brian Donovan
23a654d57a
Allow null locations per Quartz 2D documentation.
...
See http://developer.apple.com/library/ios/#DOCUMENTATION/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_shadings/dq_shadings.html%23//apple_ref/doc/uid/TP30001066-CH207-TPXREF101
2010-09-28 08:22:09 -07:00
Klaas Pieter Annema
ffcbf87858
add basic support for drawing separators to CPBox
2010-09-28 14:50:20 +02:00
Ross Boucher
32a0e950fe
Allow comparators to return any value > 1 to indicate CPOrderedDescending.
2010-09-28 16:46:39 +05:30
Randall Luecke
f21ec37531
Fix for NativeHost windows becoming inactive when then go to the background.
2010-09-28 00:18:02 -04:00