Aparajita Fishman
a8b0e7eee2
Merge branch 'master' of http://github.com/280north/cappuccino into my_master
2010-07-27 07:37:23 -04:00
Klaas Pieter Annema and Ross Boucher
90e9b86497
match CPTableView's alternating row colors with Aristo's
2010-07-26 22:48:58 -07:00
Klaas Pieter Annema and Ross Boucher
560ea75a25
added CPArrayController to AppKit.j
2010-07-26 22:48:40 -07:00
Klaas Pieter Annema and Ross Boucher
78fd972312
only reverse set the binding on end editing
2010-07-26 22:48:40 -07:00
Klaas Pieter Annema and Ross Boucher
d947c849c8
made _accessorForKey slightly faster by inlining it as a function
2010-07-26 22:48:40 -07:00
Klaas Pieter Annema and Ross Boucher
8ce63a244c
store accessors in a javascript object not a CPDictionary, for slight performance improvement
2010-07-26 22:48:39 -07:00
Klaas Pieter Annema and Ross Boucher
0306c35b54
don't copy the selection indexes in setContent:
2010-07-26 22:48:39 -07:00
Klaas Pieter Annema and Ross Boucher
ff8e5ae42e
save _replacedKeys on the class in stead of the object instance
...
reviewed: Ross
2010-07-26 22:48:39 -07:00
Aparajita Fishman
e8cd9c15fb
Another try at fixing issue #782
2010-07-26 19:58:13 -04:00
Aparajita Fishman
848abf116d
Cleaned up the state indicator (it was a little uneven) and centered it more horizontally in the state column.
2010-07-26 14:44:55 -04:00
Aparajita Fishman
7e0ade21e1
Forgot to update NSFont with aparajita@fad96880eb4d68edd60714b697ab6a3d3531100d
2010-07-26 14:32:13 -04:00
Aparajita Fishman
e15ea5f2f0
Fix for issue #782 (CPImageView -setObjectValue wrongly sets src attribute to empty string)
2010-07-26 12:57:28 -04:00
Aparajita Fishman
fad96880eb
Simplified means of setting the default system font, now the CPSystemFontFace item only needs to be added to AppKit/Info.plist.
2010-07-25 19:37:24 -04:00
Aparajita Fishman
e0547483f6
For the methods that don't have context: in their signature, the predicate will receive undefined in the context parameter instead of nil.
2010-07-25 16:55:55 -04:00
Aparajita Fishman
abda2990ae
CPArray -indexOfObjectPassingTest and related methods:
...
- Added documentation.
- Changed the predicate to use a return value of nil to indicate stopping the search.
- Added unit tests.
2010-07-25 16:54:04 -04:00
Aparajita Fishman
00de3edd5f
Cleaned up drawing code for _CPDropOperationDrawingView, increased width of highlight when highlighting entire table
2010-07-24 10:21:04 -04:00
Aparajita Fishman
30004c5e93
Support for CPBox in nib2cib, support for line, bezel and groove borders in CPBox as well as background color.
2010-07-24 09:54:31 -04:00
Aparajita Fishman
05303f3050
Port of NSGraphics
2010-07-24 09:49:50 -04:00
Aparajita Fishman
60313355c2
-hitTest was always returning self, which did not allow any other views to receive a mouse down
2010-07-24 09:44:57 -04:00
Aparajita Fishman
673f12164f
Resign as first responder only if CPSearchField and its super agree to.
2010-07-24 08:57:15 -04:00
Aparajita Fishman
69273259a5
More fixes to CPSearchField (Cocoa compliance and bugs):
...
- Added the ability to specify a separator in the template by using the tag CPSearchFieldSeparatorMenuItemTag.
- _recentSearches was not being initialized by -initWithCoder, moved that code into -_init.
- -setSearchMenuTemplate was not being invoked. Since having a recents menu is the default behavior in Cocoa, it should probably be the default behavior in cappuccino. To turn it off, set _maximumRecents to >= 254.
- -searchTextRectForBounds was using the wrong rect for -searchButtonRectForBounds and -cancelButtonRectForBounds, resulting in a rect that was too narrow and did not fill the space.
- Tightened up the spacing between the magnifying glass and the text to exactly Cocoa distance.
- Overhauled -
updateSearchMenu to fix some logic bugs.
- Made sure the search field becomes first responder after closing the search menu.
- Cleared the search string when clearing recent searches, this is what Safari does.
- Removed redundant invoking of -setDelegate in -initWithCoder.
- -_init has to be called last in _initWithCoder.
2010-07-23 22:37:28 -04:00
Aparajita Fishman
964b160233
Fix for issue #748
2010-07-23 18:02:51 -04:00
Aparajita Fishman
94ee852cfe
Implemented method of setting the default system font face. See http://groups.google.com/group/objectivej/browse_thread/thread/64f6a42d74d68386
2010-07-23 17:56:21 -04:00
Aparajita Fishman
91f14e38ef
Fix for issue #778
2010-07-23 17:18:08 -04:00
Aparajita Fishman
8eafad2193
Fix for issue #777 , also fixed a declared type while I was at it
2010-07-23 17:06:23 -04:00
Aparajita Fishman
cc6aa999b9
frame parameter is not being used in _initWithFrame, might as well leave it out, fixed typo in comment
2010-07-23 16:28:10 -04:00
Aparajita Fishman
7b49aa0c88
Fix for issue #776
2010-07-23 16:21:38 -04:00
Aparajita Fishman
ced9879b28
Cursor is not being reset to the original cursor when exiting a drag region or ending a drag, the drag destination may have set it to something else
2010-07-23 12:39:35 -04:00
Aparajita Fishman
b0a4930580
Merge branch 'my_master' of github.com:aparajita/cappuccino into my_master
2010-07-23 12:25:17 -04:00
Aparajita Fishman
27a20b54e8
Added -indexOfObjectPassingTest: and related methods
2010-07-23 12:23:06 -04:00
Aparajita Fishman
8a61b9a1a0
Added -indexOfObjectPassingTest: and related methods
2010-07-23 12:13:49 -04:00
Aparajita Fishman
fe2bc9f523
Removed redundant code, fixed to work with theming of tableview grid color
2010-07-23 12:08:22 -04:00
Aparajita Fishman
9450f63f2a
Fixes to cacaodev/searchfield/ffb8f99603d96b903b6bb39bc4dcb15ad09465be...
...
- Replaced CG functions with inline _CG functions
- _canResignFirstResponder was not being initialized to YES
- -resignFirstResponder has to call super if _canResignFirstResponder == YES
2010-07-23 11:49:46 -04:00
Aparajita Fishman
15eeecb804
Merged cacoadev/searchfield into my_master
2010-07-23 08:42:24 -04:00
Aparajita Fishman
16f71099a3
Fix for issue #768
2010-07-22 23:33:04 -04:00
Randall Luecke
51f780b5f5
Merge branch 'master' of github.com:280north/cappuccino
2010-07-22 00:21:51 -05:00
Randall Luecke
cffbf86351
TableView theming
2010-07-22 00:21:02 -05:00
Ross Boucher
709a9b3c61
Merge remote branch 'klaaspieter/fix-758-cpdate-isequal'
2010-07-21 15:04:10 -07:00
Ross Boucher
c35621b669
Merge remote branch 'klaaspieter/fix-756-cpstring-isequal'
2010-07-21 15:03:43 -07:00
Alexander Ljungberg and Ross Boucher
4d1baac4db
Fixed: first clearing a \r keqyEquivalent from one button and then setting it on another would result in an exception.
2010-07-21 14:57:52 -07:00
Alexander Ljungberg and Ross Boucher
474623feb3
Added support for punctuation based key equivalents such as Cmd-' or Cmd-;. Fixed: [event characters] would contain Þ when Cmd-' was pressed and º for Cmd-; since the key codes for punctuation do not match the ASCII codes and String.fromCharCode does not work. Manual test included.
2010-07-21 14:52:05 -07:00
Ross Boucher
85f3691432
Don't add a "Shift" if it's not required.
2010-07-19 16:27:44 -07:00
Klaas Pieter Annema
2ae8d25d18
don't use === for date equality checking
...
Apparently this will return false for equal dates, reverted the actual equality check to what was already in Cappuccino before my fix !(date < otherDate || date > otherDate)
2010-07-19 13:10:15 +02:00
Randall Luecke
a2e6f8f964
Initial theming of TableView header.
2010-07-15 22:32:00 -05:00
Klaas Pieter Annema
564668587c
fix CPDate isEqual: and isEqualToDate:
2010-07-15 14:42:48 +02:00
Klaas Pieter Annema
023cf46041
check for nil in CPString isEqual:
2010-07-15 14:39:24 +02:00
Klaas Pieter Annema
36bb41a945
implemented isEqual: on CPString
2010-07-15 12:49:52 +02:00
Randall Luecke
0cbdb3b2d1
Fix for redrawing issues in tableview. Closes #627
2010-07-12 21:14:48 -05:00
Randall Luecke
70f2d86b58
Fixes for adding and removing columns to the tableview after the tableview has already been displayed... There are still issues though.
2010-07-12 20:45:30 -05:00
Randall Luecke
7696b30067
Added tests for CPFormatter and Foundation import.
2010-07-11 16:57:17 -05:00