aparajita
16b7093e19
Merge pull request #1595 from slevenbits/array-filters
...
Added CPArray -indexesOfObjectPassingTest methods
2012-07-04 12:46:51 -07:00
Aparajita Fishman
0f5a6b4e5e
Added CPArray -indexesOfObjectPassingTest methods
2012-07-04 15:41:45 -04:00
cacaodev
c7a8124be8
CPPopUpButtonTest test CPContentValuesBinding with value transformer. Currently failing.
2012-07-04 17:55:39 +02:00
Alexander Ljungberg
c3c74a13c0
Merge pull request #1592 from slevenbits/splitview-autosave-improvement
...
Improve split view autosave.
2012-07-03 23:58:08 +01:00
Alexander Ljungberg
cde50cc8b4
Refs #1558 . Better ivar name and type.
2012-07-03 13:57:11 +01:00
Alexander Ljungberg
fcc11b8969
Fixes #1559 . Nested split view autosave and better override support.
...
Nested split views now correctly restore their divider positions by restoring "top down". E.g. a nesting split view is restored before the nested split view so that the nested split view has the correct frame size for the position it is restoring.
This commit also makes it easier to override autosave restores in a subclass or a controller's `viewDidLoad`. Now if `setPosition:ofDividerAtIndex:` is called after the split view's `initWithCoder:` has finished, but before the final autosave restore has occurred, the autosave restore is cancelled. This preserves whatever the modification the programmer intended to make instead of overwriting it with the autosaved position.
This commit also fixes a bug where an autosaved position would not be restored, or would be restored at an unexpected time, if `setFrameSize:` was not sent to the split view shortly after its `initWithCoder:`. (Such a `setFrameSize:` message is often sent due to a window `setFullPlatformWindow:` call in `AppController.j`'s `awakeFromCib`, but it's not necessarily sent.)
2012-07-03 13:53:52 +01:00
Alexander Ljungberg
c9b7d1e842
Refs #1559 . Autosave split view positions for frame size changes.
...
This covers the case where the whole split view is resized and the divider moves as a consequence. For example if the split view was made much smaller the fixed position of the divider previously autosaved might not even be inside of the split view frame anymore, and on restore from autosave that side of the split view might unexpectedly become collapsed.
The new behaviour also more closely matches Cocoa's, although there is still a slight difference in implementation.
2012-07-03 13:44:59 +01:00
Martin Carlberg
e5f4a7c39a
Added support for CPNullPlaceholderBindingOption and made some clean up of code
2012-07-03 12:36:19 +02:00
Alexander Ljungberg
814e72879e
Manual test for split view autosave.
2012-07-03 11:09:39 +01:00
Alexander Ljungberg
5f9463a030
Refs #1558 . Test all split view divider types.
2012-07-03 10:54:27 +01:00
Alexander Ljungberg
37d4a06aa4
Fixes #1558 . Support "thick divider" split view style in nib2cib.
...
The thick divider style is converted to the pane splitter style in nib2cib since we only use two styles in Cappuccino.
2012-07-03 10:44:07 +01:00
aparajita
fb590550cd
Merge pull request #1589 from slevenbits/nib2cib-fixes
...
nib2cib fixes
2012-07-02 06:57:09 -07:00
Aparajita Fishman
2f27291c53
Tweaked debug output of custom image resources in nib2cib
2012-07-02 09:55:52 -04:00
Aparajita Fishman
fc23863d85
Added support for alternate button title in nib2cib
2012-07-02 09:55:52 -04:00
aparajita
8651a59f43
Merge pull request #1587 from slevenbits/non-bordered-buttons
...
Non-bordered buttons should retain their size, not shrink to fit
2012-07-02 06:41:49 -07:00
Aparajita Fishman
2f1e9d76ec
Non-bordered buttons should retain their size, not shrink to fit.
2012-07-02 09:40:00 -04:00
Mike Holman
2e1a72030e
Fix CPPredicateEditor CPTextField action bug.
2012-07-02 16:17:35 +08:00
aparajita
c9f32ac77b
Merge pull request #1584 from slevenbits/splitview-autosave
...
CPSplitView autosave optimization
2012-06-30 13:34:50 -07:00
Aparajita Fishman
6efa30c52a
autosave of position should not happen until divider tracking is completely done.
...
Also renamed a local variable that looked like an ivar.
2012-06-30 16:19:06 -04:00
Martin Carlberg
ef30e21506
Missed to remove some line in manual merge
2012-06-30 09:20:50 +02:00
Martin Carlberg
70b5f9ee98
Merge branch 'popup_button_binder_subclass' of https://github.com/cacaodev/cappuccino into binding_support_popup_button
...
Conflicts:
AppKit/CPPopUpButton.j
2012-06-30 08:41:14 +02:00
aparajita
3137839322
Merge pull request #1583 from slevenbits/splitview-userinfo
...
Splitview userinfo
2012-06-29 13:11:23 -07:00
Aparajita Fishman
345a865cc8
Post OS X 10.5, Cocoa adds a userInfo with the divider index when the user drags the divider
2012-06-29 13:09:47 -07:00
aparajita
2a4ef4394c
Merge pull request #1582 from slevenbits/nib2cib-images
...
nib2cib image fixes
2012-06-29 11:33:13 -07:00
Aparajita Fishman
3ba5be1ec6
nib2cib image fixes
...
- nib2cib will now log the path and size of custom image resources in super verbose mode.
- Alternate images for buttons were not being set by nib2cib, that has been fixed.
- Fixed the name of the imagesize binary in the Xcode project.
2012-06-29 11:29:53 -07:00
Aparajita Fishman
606f3dfe6b
Replaced Java-based image utility with Cocoa command line app, cleaned up some fontinfo stuff
2012-06-29 11:29:46 -07:00
cacaodev
c865644e6c
Test for CPPopUpButton bindings.
2012-06-29 19:42:20 +02:00
Martin Carlberg and cacaodev
fec1586380
CPPopUpButton bindings support (set for all and reverse for selection related bindings) using a CPBinder subclass instead of dedicated selectors.
2012-06-29 19:40:23 +02:00
cacaodev
8e2afde3e4
CPKeyValueBinding -reverseSetValueFor: -> extract a method for getting the source value for a given binding. the goal is to facilitate subclassing.
2012-06-29 19:37:35 +02:00
Aparajita Fishman
5410884e03
Fixed the documentation for CPArray -indexOfObject methods
2012-06-29 09:02:35 -07:00
Aparajita Fishman
e9ceb1d0c6
Documentation tweak
2012-06-28 15:25:39 -07:00
Alexander Ljungberg
8d14bdd819
CPToolbar autovalidate.
2012-06-28 22:41:41 +01:00
Alexander Ljungberg
23f3a01e3c
Merge pull request #1579 from slevenbits/cptoolbar-delegate
...
CPToolbar delegate fix
2012-06-28 20:27:23 +01:00
aparajita
3540dd1c26
Merge pull request #1578 from slevenbits/initialize-fix
...
Implement missing +initialize checks and regularize checks
2012-06-28 12:09:42 -07:00
Aparajita Fishman
cae5486ec6
Added missing class checks in +initialize, regularized checking code
2012-06-28 12:05:18 -07:00
Alexander Ljungberg
a769618e3e
Don't copy an array we'll copy again 2 lines later.
...
If the delegate returns nil we're just copying nil, and if it does return an array we only use it for a single read-only `arrayByAddingObjectsFromArray:`.
2012-06-28 19:15:20 +01:00
Alexander Ljungberg
80d537958e
Fixed: CPToolbar delegate toolbarDefaultItemIdentifiers: is optional.
...
This fix makes it possible for a toolbar defined in a cib to have a delegate set without defining `toolbarDefaultItemIdentifiers:` like in Cocoa. You might be implementing other delegate methods.
2012-06-28 19:12:05 +01:00
aparajita
d923fb56e2
Merge pull request #1577 from slevenbits/key-loop-fix
...
Key loop fix
2012-06-28 10:06:30 -07:00
Aparajita Fishman
7747bbffcf
Fixed key loop calculation, might as well use _initialFirstResponder instance variable instead of accessor
2012-06-28 10:01:07 -07:00
ggsato
db47d8fb85
fixed needsUntitled evaluation
2012-06-28 12:01:37 +09:00
Alexander Ljungberg
c52315cd8d
Refs #1572 . Merge extra commit re highlights.
2012-06-25 21:58:02 +01:00
Alexander Ljungberg
a2787f8783
Formatting.
2012-06-25 21:57:28 +01:00
Ilya Kulakov
913308d886
Refs #1572 . Fix highlighted status is not preserved.
...
When higlightsBy == CPNoCellMask and showsStateBy == CPChangeBackgroundCellMask
higlighted status must be preserved when a user switch state from Off to On.
2012-06-26 03:54:59 +07:00
Alexander Ljungberg
21bb383193
Refs #1527 . Fix button performClick: highlight.
...
Critically this is what enables button highlighting on key equivalents.
2012-06-25 18:13:16 +01:00
Alexander Ljungberg
bd83885eca
Refs #1527 . Backwards compatibility.
...
If no highlight or state masks were encoded (button was encoded prior to them being added), make sure to let the default settings stand.
2012-06-25 17:42:31 +01:00
Alexander Ljungberg
d34d139658
Refs #1572 . Default CPButton type.
...
If a button is created in code it should act like a regular momentary push in button by default.
2012-06-25 17:21:56 +01:00
Alexander Ljungberg
f5c201c0be
Refs #1572 . Fixed: CPPushInCellMask in showsStateBy.
...
Code didn't match comment.
2012-06-25 17:18:07 +01:00
Alexander Ljungberg
10fcc0c452
Refs #1572 . Minor fixes.
2012-06-25 16:26:44 +01:00
Alexander Ljungberg
378822b777
Merge pull request #1572 from slevenbits/cpbutton-masks
...
CPButton and subclasses respect highlightsBy and showsStateBy masks now.
Conflicts:
AppKit/CPButton.j
Tests/Manual/CPButtonTest/AppController.j
Tests/Manual/CPButtonTest/Info.plist
Tests/Manual/CPButtonTest/Resources/MainMenu.cib
Tests/Manual/CPButtonTest/Resources/MainMenu.xib
2012-06-25 16:05:03 +01:00
Alexander Ljungberg
edebb81ed4
Merge pull request #1570 from aradabaugh/cpbutton-types
...
Enable additional button types for CPButton
2012-06-25 15:40:23 +01:00