cacaodev
9b03abaeef
ViewBasedCib example now uses a separate table delegate, which is the owner of table cell views.
...
It shows that the loaded view (intenal or external) has an outlet owned by the table delegate and is available for initial setup in -awakeFromCib
2012-11-13 18:52:45 +01:00
cacaodev
5b1cf49170
Merge remote-tracking branch 'upstream/master' into CPTableViewLion
2012-10-15 14:23:24 +02:00
Alexander Ljungberg
adb6404a0f
Support Cib/Interface Builder window positioning masks.
...
Without this feature windows could easily end up being placed outside of the screen/browser when loaded in Cappuccino due to e.g. the window position being 100 px from the bottom of a 1418 px tall screen but the browser only being 800 px.
This commit adds support for all "initial position" window masks in Interface Builder except "centre". Position can be specified in current screen space coordinates and then adjusted proportionally to the browser size, or adjusted while preserving a left or right margin and a top or bottom margin.
2012-10-15 00:20:22 +01:00
Alexander Ljungberg
b629b882b4
Clean up and fix ArrayController1 test.
...
Use `CPValueBinding` instead of `@"value"` in case someone reads this as an example.
2012-10-14 19:32:47 +01:00
Aparajita Fishman
c37783c895
Fixed table column header styling
...
- Attributes set in IB are now obeyed.
- Added accessor methods to programmatically style _CPTableColumnHeaderView.
Since we don't have an NSCell and _CPImageAndTextView is supposed to be private, it's better to have the styling methods in _CPTableColumnHeaderView.
2012-10-11 12:34:55 -04:00
Aparajita Fishman
3ccaa4de50
Button types can be set in IB, no need for code
2012-09-28 18:04:31 -04:00
Aparajita Fishman
95246d73c1
Fixed xib to work correctly with smaller screens
2012-09-28 17:44:56 -04: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
Johan Stille
eb2bb24c19
Added support for CPNumberFormatterPercentStyle in CPNumberFormatter.
2012-09-24 12:08:31 +02:00
Antoine Mercadal
2f428fa389
test item visibility when expanding/collapsing items
2012-09-10 15:19:32 -07:00
Alexander Ljungberg
bf3a152946
Whitespace.
2012-09-03 20:20:05 +01:00
Antoine Mercadal
d1c978669b
run ImageOptim on all images. Saved around 30% of original size
2012-08-24 11:48:55 -07:00
Alexander Ljungberg
b28673d23d
Eliminate some debug output from jake test runs.
2012-08-24 17:26:27 +01:00
Alexander Ljungberg
46848562d0
Improve describe format of CPDictionary and CPArray to be more like literals.
...
E.g. a dictionary is expressed as @{key1: value1}, an array like @[value2, value2], a string like @"<value>".
Also don't put all child objects into quotation marks - that makes them all look like strings.
2012-08-24 17:25:37 +01:00
Alexander Ljungberg
6d4ce10150
Formatting.
2012-08-21 01:24:36 +01:00
Alexander Ljungberg
4fbd0fdc42
Unit test KVCArray setArray: behaviour.
2012-08-19 16:50:09 +01:00
Alexander Ljungberg
3dffbd6071
Refs #1001 . Make it easy to test text field cut/paste behaviour.
2012-08-16 19:13:59 +01:00
Alexander Ljungberg
1a467f9208
Test text fields with various sizes.
2012-08-15 18:31:39 +01:00
Alexander Ljungberg
120cea8734
Refs #1364 . Fix CPTextField test to work with new sheet changes.
2012-08-14 00:15:03 +01:00
Alexander Ljungberg
5a8c94183a
Refs #1364 . Formatting, don't shadow window global.
2012-08-11 19:35:05 +01:00
Alexander Ljungberg
de8e08f4f4
Refs #1364 . Add an index-debug.html to test app.
2012-08-11 16:11:04 +01:00
Alexander Ljungberg
1e55b79b49
Merge pull request #1364 from walisser/master
...
Doc-modal/window-modal sheets and other sheet issues [+1]
2012-08-11 15:59:52 +01:00
Alexander Ljungberg
fdf3e499be
Merge pull request #1644 from slevenbits/CPArrayController-preserveSelectionFix
...
Fix wrong indexes are selected when removing arranged objects.
2012-08-06 13:53:31 +01:00
Ilya Kulakov
c1ace9a7c3
Fix wrong indexes are selected when removing arranged objects.
2012-08-06 19:19:13 +07:00
Eric Wong
175c70d99e
fix a new bug in CPDecimalMakeWithString and remove some test cases
2012-08-05 08:37:44 +08:00
Darrell Walisser
24ef4d41d2
-capp_lint
...
-enable close buttons based on context
-remove stuff that doesn't work
2012-08-04 13:20:35 -04:00
Eric Wong
9f1a8fa7a2
enable '.003' or '-.003' style number in CPDecimalMakeWithString function and add new test cases
2012-08-04 23:04:40 +08:00
Alexander Ljungberg
4d8758f755
Fix CPTextFieldTest.
2012-08-04 13:58:29 +01:00
Alexander Ljungberg
31ea0da526
CPNumberFormatter generatesDecimalNumbers support, enabled by default.
2012-08-04 13:45:45 +01:00
Alexander Ljungberg
3a2bf36359
Very basic CPNumberFormattercurrency style.
2012-08-04 13:37:42 +01:00
Alexander Ljungberg
dc0c63ccc3
Extend CPNumberFormatter CPCoding support and fix rounding default.
2012-08-04 02:31:43 +01:00
Alexander Ljungberg
a7f22a0c5a
Correct CPNumberFormatter maximumFractionalDigits default.
2012-08-04 01:09:51 +01:00
Alexander Ljungberg
b279a92e4c
CPNumberFormatter setMinimumFractionDigits: support.
2012-08-04 00:55:41 +01:00
Alexander Ljungberg
055dd7229e
Properly allow CPNumberFormatter to operate on most CPNumber types.
...
This only worked by accident before.
2012-08-04 00:48:45 +01:00
Antoine Mercadal
0922f3dab7
Merge pull request #1573 from mrcarlberg/binding_support_popup_button
...
Added key value binding support for CPPopupButton
2012-08-02 15:58:15 -07:00
Alexander Ljungberg
b4cfa8cefb
CPEvent description.
2012-08-02 15:53:27 +01:00
Alexander Ljungberg
1ccd89ddd8
Refs #1640 . Unit test.
2012-08-02 15:44:19 +01: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
7537f4d032
Eliminate some duplicate methods.
2012-08-01 16:35:34 +01:00
Darrell Walisser
32c5c82cb9
-removed unused import
2012-07-29 14:04:06 -04:00
Darrell Walisser
1c18862e0f
-added manual test
2012-07-29 12:54:34 -04:00
cacaodev
9cbb8fd5bc
Support for external cibs (a view in an individual cib). Added such view to ViewBasedCib. Also added an example of a view created manually in the delegate
2012-07-27 20:00:00 +02:00
cacaodev
1a0434fd85
Fix action sent when an edited control is enqueued (see action log in test app).
...
A non bezeled text field is now bezeled when edited and unbezeled when editing ends - including when you hit enter (but text has to be modified, see comment in code)
2012-07-27 16:32:02 +02:00
Alexander Ljungberg
bd0114aa06
Refs #1632 . Remove debug logging.
2012-07-26 13:42:01 +01:00
Alexander Ljungberg
3e218d6aec
Refs #1632 . Unit test for CPUndoManagerDidCloseUndoGroupNotification.
2012-07-26 13:32:01 +01:00
Alexander Ljungberg
b51a2e25c2
Refs #1631 . Unit test last index of index set with a single index.
2012-07-24 20:09:18 +02:00
cacaodev
0faf38a1e1
From within the delegate method, if you ask for an IB view (makeviewWithIdentifier:owner:), the view is now automatically reusable.
...
Before that, IB views were reusable only if the delegate method was not implemented.
If you create a view in code, you still need to make it reusable by calling -setIdentifier:
Woow ... now viewBasedCib loads the views x3 times faster.
2012-07-23 19:55:06 +02:00
Alexander Ljungberg
9eee7a214e
Refs #1630 . Add test.
2012-07-23 15:35:52 +02:00
Alexander Ljungberg
6d08f0d60b
Formatting.
2012-07-23 15:26:03 +02:00