Alexandre Wilhelm
0f4a938dfc
Fixed: attributes of the listDelegate of a CPComboBox could crash cappuccino
2014-12-05 09:50:49 -08:00
Alexandre Wilhelm
46a0ce8e98
Fixed: wrong condition when setting the frame in CPWindow when ordering a view
2014-12-04 11:06:50 -08:00
Alexandre Wilhelm
c7ccff914f
Test: added basic test for ordering window
2014-12-02 16:48:44 -08:00
Alexandre Wilhelm
8efb6f8808
Test: added unit test for registered notification for the tableView
2014-12-02 16:39:07 -08:00
Alexandre Wilhelm
006bf72c17
Test: added unit test for registered notification for the scrollView
2014-12-02 16:38:55 -08:00
Alexandre Wilhelm
ec3af04f29
Test: added tests for CPComboBox
2014-12-02 16:38:17 -08:00
Alexandre Wilhelm
b45399a045
Test: added class notificationHelper with the method registeredNotificationsForObserver
2014-12-02 16:37:57 -08:00
Alexandre Wilhelm
12ed70fec2
Fixed: notifications CPWindowDidResignKeyNotification and CPWindowDidBecomeKeyNotification were not registered for a firstresponder textField when ordered again a window
2014-12-02 16:37:02 -08:00
Alexandre Wilhelm
c3ce0a61b6
Fixed: type with the method _windowWillBeAddedToTheDOM in CPWindow
2014-12-02 10:03:13 -08:00
Alexandre Wilhelm
f5d847f320
Style: style in CPWindow
2014-12-01 16:08:49 -08:00
Alexandre Wilhelm
1df0da7509
Fixed: method addObservers and removeObservers were not call all the time when ordering or not a window
2014-12-01 16:07:48 -08:00
Alexandre Wilhelm
e4bfd0ef5e
Fixed: issue when opening a popUpList of a CPComboBox. We now firstly open the panel and then we modify the content of the panel, this occured an issue with the rendering of the view
2014-12-01 16:07:13 -08:00
Alexandre Wilhelm
2e66601c19
Fixed: memory leak in CPComboBox
...
Previously, when assigning a listDelegate to a CPComboBox, we never deleted the observers added by this method. Now we add and delete these observers in the method addObservers and removeObservers.
This PR fix another issue. Previously, the behavior of the panel of the comboBox wasn't the same as the one in Cocoa. Now, when closing the panel, the hit view won't be the first responder as it was. Cocoa works like this as well.
2014-12-01 14:22:39 -08:00
Alexandre Wilhelm
2484fb85e9
Fixed: warning raised by the compiler due to unknown type in var declarations
2014-12-01 14:22:06 -08:00
Alexandre Wilhelm
56acbfc85c
Fixed: change == to === on CPTextField when assigning a delegateo
2014-11-28 10:00:27 -08:00
Alexandre Wilhelm
30413e6f8f
Merged conflict in CPComboBox
2014-11-26 16:00:03 -08:00
Alexandre Wilhelm
6ed7354884
Merge branch 'master' of https://github.com/cappuccino/cappuccino
2014-11-26 15:57:40 -08:00
Alexandre Wilhelm
94f89acc84
Fixed: memory leaks when using a delegate with a CPTextField
2014-11-26 15:56:10 -08:00
Alexandre Wilhelm
392a6cfbca
Fixed: memory leak when using a delegate with a CPComboBox
2014-11-26 15:55:50 -08:00
Alexandre Wilhelm
e03b6b3824
Fixed: _postDidResizeNotificationWithOldWidth does not exists anymore, replace by _didResizeTableColumn:tableColumn:oldWidht:
2014-11-26 15:18:39 -08:00
Alexandre Wilhelm
51940cea3d
Fixed: leak memory with CPTableViews delegate
2014-11-26 15:05:22 -08:00
Antoine Mercadal
5ab346e5d1
Merge pull request #2254 from primalmotion/objj-typedef-and-ivar-checks
...
Objj typedef and ivar checks
2014-11-26 13:40:56 -08:00
Antoine Mercadal
243024e232
Fix broken tests due to new objj type checks
2014-11-26 13:12:39 -08:00
Alexandre Wilhelm
e62fd4dc00
Merged of CPCLipView
2014-11-26 13:09:51 -08:00
Alexandre Wilhelm
547522a0a4
Fixed: Memory leak in CPClipView
...
Previously, the CPClipView registered the documentView to the notificationCenter as an observer to be notified when the frame/bounds of the documentView change.
Now, we don't use the notificationCenter anymore. The class CPView send a message to its superview (when it's a clipView) when the frame or bounds change. This fix the memory leak of the CPClipView
Fixed #2264
2014-11-26 13:06:03 -08:00
Antoine Mercadal
b0a7fe4079
Merge branch 'master' into objj-typedef-and-ivar-checks
...
+ fixed new warnings from master
Conflicts:
Foundation/CPNotificationCenter.j
2014-11-26 12:00:34 -08:00
Antoine Mercadal
31afae71d1
Typos
2014-11-26 11:52:25 -08:00
Antoine Mercadal
e7ae969c8e
Merge pull request #2261 from Dogild/CPNotificationBlock
...
New: added method addObserverForName:object::usingBlock: in CPNotificationCenter
2014-11-26 11:51:17 -08:00
Alexandre Wilhelm
fc5bb7417f
Fixed: removed useless comment in CPClipView.j
2014-11-26 10:20:07 -08:00
Alexandre Wilhelm
b36cc8f1e9
Fixed: Memory leak in CPTableView, CPScrollView
...
Prevously, when removing a CPTableView or a CPScrollView, the CPNotificationCenter kept a reference of these observers in the notification center.
Now, the CPNotificationCenter does only have a observer when necessary.
2014-11-25 17:33:17 -08:00
Alexandre Wilhelm
d481d9cca5
Fixed: added queue to the method addObserverForName:(CPString)aNotificationName object:(id)anObject queue:(id)queue usingBlock:(Function)block
2014-11-20 23:38:53 -08:00
Alexandre Wilhelm
fe25dbd872
New: added method addObserverForName:object::usingBlock: in CPNotificationCenter
...
Previously, the method addObserverForName:object::usingBlock: didn't exist in Cappuccino.
Now it does.
To observe, you need to use the method - (id <CPObject>)addObserverForName:(CPString)aNotificationName object:(id)anObject usingBlock:(Function)block
To unregister observations, you pass the object returned by this method to removeObserver:. You must invoke removeObserver: or removeObserver:name:object:.
Test /Tests/Foundation/CPNotificationCenterTest.j
Fixed #2259
2014-11-20 15:24:23 -08:00
Antoine Mercadal
0dcc645f22
Fix a missing @class declaration
2014-11-20 11:50:18 -08:00
Antoine Mercadal
f3090e7827
Update test cases
2014-11-20 11:44:51 -08:00
Antoine Mercadal
37b9895878
Add check to ensure a @class declaration is not already defined as a type
2014-11-20 11:44:32 -08:00
Antoine Mercadal
d5b4d66272
Merge pull request #2260 from Dogild/MenuCrash
...
Fixed: CPMenu crash when opening a menu with items and then opening the menu without items
2014-11-19 16:29:45 -08:00
Antoine Mercadal
653f706f1b
Update README
2014-11-19 16:29:05 -08:00
Antoine Mercadal
d106e6485b
Add some manual test cases for objj output
2014-11-19 16:23:56 -08:00
Antoine Mercadal
460a60440a
Correctly set the type of datasource in CPComboBox
2014-11-19 14:53:38 -08:00
Antoine Mercadal
9e66c699e1
FIXED: prevent to declare a type that is already declared as a class and vice-versa
2014-11-19 14:35:33 -08:00
Antoine Mercadal
86d2431925
CPWebScriptObject is a class, not a typedef
2014-11-19 14:34:52 -08:00
Alexandre Wilhelm
d30659c37c
Fixed: CPMenu crash when opening a menu with items and then opening the menu without items
...
Previously, when opening a menu with items and then opening another menu without items, Cappuccino simply crashed. Now it works !
2014-11-19 14:27:19 -08:00
Antoine Mercadal
1402133c32
Merge pull request #2164 from daboe01/fixed--CPTextField-&-Bindings--data-updates-even-though-no-editing-has-taken-place
...
Fixed: textField bindings delete data in case of multiple selection after tabbing out with no editing
2014-11-17 12:49:15 -08:00
Antoine Mercadal
5a99e18d7c
Merge pull request #2238 from Dogild/ChainSheetWindow
...
Fixed: unable to chain sheet in a window
2014-11-17 12:42:15 -08:00
Antoine Mercadal
afe326c1c1
Merge pull request #2258 from t00f/fix_controlSize_height
...
Fixed: Enable CPTextField to have a specific height
2014-11-17 12:40:37 -08:00
Antoine Mercadal
e40612a032
Merge pull request #2255 from ahankinson/fix-default-jakefile
...
Fixed: Environment configuration in Jakefile templates
2014-11-17 12:39:43 -08:00
Antoine Mercadal
9c6cca7db6
Merge pull request #2257 from primalmotion/textfield-multiline-support
...
NEW: Support for multiline mode in CPTextField
2014-11-17 12:39:00 -08:00
Christophe Serafin
a5283a26ab
Fixed: Enable CPTextField to have a specific height
...
When setting controlSize, CPTextfield height was forced to min-size height.
Now we check that the frame size is between the min and the max size. It allows to constrain
a CPControl to have a fixed height by specifying a min-size equivalent to the maxsize.
In CPTextField case, we only have a min-size which enable us to have a specific size.
Changes has been made in Aristo2 only.
2014-11-14 13:49:33 -08:00
Antoine Mercadal
e2020fa7f2
Add CPAltEnterTextAreaFeature checking. FF doesn't add a cariage return on textarea when doing alt+enter
2014-11-13 00:17:29 -08:00
Antoine Mercadal
de3f6d3e82
Add manual test
2014-11-13 00:10:37 -08:00