Martin Carlberg and GitHub
7dc77ed609
Fixed: Make sure we handle undefined when testing for nil values ( #2862 )
2020-01-31 13:43:58 +01:00
cacaodev
d547d04277
NEW: CPViewController -loadViewAsynchronously:(Function/*view, error*/)
...
with manual test CPViewControllerTest
2016-01-20 11:54:02 +01:00
Alexandre Wilhelm
5f7922d7fd
Fixed: crash in CPCib.j due to previous refactoring refs #c5b250236fa662e3da04e442f4414f95d64d9308
2015-04-22 16:21:24 -07:00
Alexandre Wilhelm
c5b250236f
New: support of base localization and nib localization
2015-04-21 18:26:28 -07:00
Alexandre Wilhelm
c171a37f24
New: first work on localization
2015-04-17 17:16:11 -07:00
Aparajita Fishman
8c811ba9ca
Fixed: instantiating a cib with no owner would generate nil warning
...
Previously, when a view-based table:
- Had no delegate.
- Used bindings for its data source, thus obviating the need for makeViewWithIdentifier:owner:.
it would eventually call CPCib -instantiateCibWithOwner:topLevelObjects: with a nil owner (the nil table delegate). This method would try to construct a dictionary with the nil owner, which would generate a deprecation warning, and will in the future fail altogether.
In Cocoa, this is exactly what happens, the owner is nil. And the documentation for -instantiateNibWithOwner:topLevelObjects: clearly states that the owner may be nil.
This commit only adds the owner to the name table dictionary if the owner is non-nil. Since objectForKey: with a non-existent key returns nil, this is the same as storing nil for that key.
2013-03-24 19:46:53 -04:00
cacaodev
7d03483210
Merge remote-tracking branch 'upstream/master' into CPTableViewLion
...
Conflicts:
AppKit/CPView.j
2013-02-26 11:56:18 +01:00
Alexander Ljungberg
5b05dc92a1
More dictionary literals.
2013-02-25 18:27:44 +00:00
cacaodev
108042c190
Merge remote-tracking branch 'upstream/master' into CPTableViewLion
...
Conflicts:
AppKit/CPTableView.j
Tests/Manual/TableTest/TableCibTest/AppController.j
2013-02-13 19:27:53 +01:00
Aparajita Fishman
866e1f00f7
Objj2 compiler fixes
...
- Each file compiles individually with no errors or warnings.
- Added missing imports.
- Fixed imports to remove circularity.
- Removed unnecessary imports.
- Added missing headers.
- Added missing action_button.png.
- Replace CPMakeRect with CGRectMake.
2013-01-23 15:48:56 +07:00
Aparajita Fishman
4f377bcebe
Objj2 compiler fixes
...
Compiled all files individually:
- Added missing imports.
- Added @class/@global declarations to break circular dependencies.
- Misc. code cleanup.
Conflicts:
AppKit/CPWindow/_CPWindow.j
AppKit/Platform/DOM/CPPlatformWindow+DOM.j
2013-01-23 15:48:55 +07:00
cacaodev
5b1cf49170
Merge remote-tracking branch 'upstream/master' into CPTableViewLion
2012-10-15 14:23:24 +02:00
cacaodev
f42b241469
CPCib -initWithContentsOfURL: return nil if the requested data is nil
2012-07-27 20:19:20 +02:00
cacaodev
f4904b8915
CPCib -initWithContentsOfURL: return nil if the returned data is nil (non existent URL, request failed for some reason ...)
2012-07-27 19:17:45 +02:00
cacaodev
02a89e2343
CPCib -instantiateCibWithOwner:(id)anOwner topLevelObjects:(CPArray)topLevelObjects : allow anOwner to be nil
2012-07-22 22:08:31 +02:00
cacaodev
f42e0d42fd
CPCib CPCoding: use new CPData -*base64 methods
2012-04-18 09:01:57 +02:00
cacaodev
c2cad3cca3
nib2cib NSNib support. NSNib are represented as data inside nib files. We need to extract them, write, nib2cib, feed CPCib with the data.
2012-04-13 09:19:23 +02:00
Aparajita Fishman
e2ead56256
Collection KVC fixes, nextObject correctness
...
- Moved common CPArray/CPSet collection KVC operators to _CPCollectionKVCOperators.
- Implemented KVC operator dispatch using Objective-J.
- Fixed infinite loop with empty collection in @min, @max and @sum operators.
- Correctly return valueForUndefinedKey when necessary.
- valueForUndefinedKey reason uses raw description for consistency, class' overridden description may not helpful at all.
- Don't create a forwarder for @ operators with property paths.
- Fixed CPSet -valueForKeyPath to correctly deal with nil/undefined/empty values.
- Added tests for collection KVC operators.
- enumerator -nextObject should always compare against nil for clarity, correctness, and consistency.
2012-04-03 22:16:55 -07:00
Alexander Ljungberg
3cee00323c
Don't separate statements by commas.
2011-11-10 12:31:16 +00:00
Alexander Ljungberg
651d6a7ed8
Linting AppKit.
2011-02-28 23:48:34 -03:00
Scott Kyle and Randall Luecke
1899250a53
Semicolons are nice...
2010-06-10 16:42:28 -05:00
Francisco Ryan Tolmasky I
8f4b2a7cfd
Fail more gracefully when main cib is not found.
...
Reviewed by me.
2010-03-29 23:20:31 -07:00
Nicholas Small
67f35c7b74
Update deprecated sendSynchronousRequest:returningResponse:error: to sendSynchronousRequest:returningResponse:
2010-03-01 17:03:00 -05:00
Francisco Ryan Tolmasky I
272f938f2e
Fix for CPData naming issues, added test cases, and fixed isEqual: for CPDictionary.
...
Reviewed by me.
2010-02-21 23:29:41 -08:00
Francisco Ryan Tolmasky I
b5ad030e40
Further blend work.
...
Reviewed by me.
2010-01-29 08:04:00 -08:00
Francisco Ryan Tolmasky I
58e06142b9
Added support for external objects in cibs.
...
Reviewed by me.
2009-09-06 11:49:25 -07:00
Francisco Ryan Tolmasky I
78fe93be68
Imrpoved identifying main menus in cibs.
...
Reviewed by me.
2009-09-04 12:37:38 -07:00
Francisco Ryan Tolmasky I
efcc5d1054
Fixed a bug that could cause CPAccordionView to infinitely re-layout (due to autoresizing flags in child views), and added option to synchronously load cibs.
...
Reviewed by me.
2009-08-31 01:22:08 -07:00
Francisco Ryan Tolmasky I
3f27fca518
Added support for custom classes on non-customviews in nib2cib.
...
Reviewed by me.
2009-06-04 02:38:06 -07:00
Ross Boucher
850125b8ab
Add documentation groups
2009-05-18 15:43:36 -07:00
Ross Boucher
32af35492d
Style fix.
2009-05-15 11:49:33 -07:00
Martin Häcker and Ross Boucher
ad58952a32
Allows to leave of the suffix .cib from the filenames of cib files (just like cocoa does and states in the documentation).
2009-05-15 11:47:43 -07:00
Francisco Tolmasky
c5f4e0a268
Cleanup code for nib2cib.
...
Reviewed by me.
2009-05-06 23:57:21 -07:00
Francisco Tolmasky
390cf2c16c
Fix for MainMenu.cib needing to be loaded manually in cib apps.
...
Closes #9 .
Reviewed by me.
2009-05-02 22:47:42 -07:00
Francisco Tolmasky
a07211253c
Making CPThemedAttribute more robust.
...
Reviewed by me.
2009-03-09 15:07:29 -07:00
Francisco Tolmasky
2664e30a8b
A number of changes.
...
Reviewed by me.
2009-03-08 20:40:11 -07:00
Francisco Tolmasky
27035770d7
Fix for adding awakeFromCib.
...
Reviewed by me.
2009-02-21 01:37:28 -08:00
Francisco Tolmasky
180c42b9d5
Added setFullBridge:/isFullBridge.
...
Reviewed by me.
2009-02-19 22:56:07 -08:00
Francisco Tolmasky
670ebee06d
A number of Cib improvments.
...
Reviewed by me.
2009-02-15 01:11:57 -08:00
Francisco Tolmasky
699550c879
Fixes to Cib support.
...
Reviewed by me.
2009-02-13 14:45:18 -08:00
Francisco Tolmasky
44d837c1eb
A number of improvements to theming and bug fixes.
...
Reviewed by me.
2009-02-13 01:48:44 -08:00
Francisco Ryan Tolmasky I
fb3c43ef6a
Made CPImageView nib2cib compliant.
...
Reviewed by me.
2009-01-09 04:38:35 -08:00
Francisco Ryan Tolmasky I
c2b9ebd4b9
Fix for "unkown class NSObject" warnings.
...
[#166 state:resolved].
Reviewed by me.
2008-12-15 00:48:27 -08:00
tlrobinson
cfbdb1ce76
nib2cib support for CPMenu, CPMenuItem, CPPopUpButton, including MainMenu support. New test NIBs.
2008-12-09 01:58:42 -08:00
Francisco Ryan Tolmasky I
5144a5a579
Added @accessor support, @import, and fixed spacing bug with @selector.
...
Reviewed by ross.
2008-10-26 00:48:49 -07:00
Francisco Ryan Tolmasky I
9d5e772d0a
Name change.
...
Reviewed by me.
2008-09-23 03:24:29 -07:00
Francisco Ryan Tolmasky I
a10058fc7f
Improved Cib Support.
...
Reviewed by ross.
2008-09-19 20:19:08 -07:00
Francisco Ryan Tolmasky I
d6b4ebaa30
Significant improvements to cib support and nib2cib.
...
Reviewed by rossco.
2008-09-17 23:56:55 -07:00
Francisco Ryan Tolmasky I
a97bb72800
Initial commit.
...
Reviewed by francisco, ross and tom.
2008-09-04 03:52:20 -07:00