Antoine Mercadal
f9275a70af
FIXED: New warnings reveleaded by ivar type checking
...
This patch fixes all new warnings
2014-11-06 10:17:05 -08:00
Martin Carlberg
0efb7e67c9
Fixed: Use new fast msgSend function for some foundation classes
2014-04-10 11:03:49 +02:00
Martin Carlberg
9f7d0578e5
New: Added the basic protocols CPObject and CPCoding
2013-08-22 14:31:15 +02:00
Martin Carlberg
d38125db13
New: Added Objective-J protocol support
...
The Objective-J parser and compiler now handles protocol syntax. The Objective-J runtime has new functions to handle protocols. The method 'conformsToProtocol:' has been added to CPObject as an instance and a class method.
2013-08-09 19:02:45 +02:00
Alexander Ljungberg
e59389b0dd
Fixed: crash in - CPArray/CPDictionary description containing self referential JS object.
...
Without this fix, certain JS contents could cause `- CPDictionary description` and `- CPArray description` to crash.
This change limits how deeply the description code will recurse before returning a default "…" description.
2013-06-13 20:14:22 +01:00
Alexander Ljungberg
22905745f1
Fixed: crash on -CPArray/CPDictionary description if a value was the window object.
...
Without this fix, code like `[@{ "a": window } description]` would crash with a "Maximum call stack size exceeded" exception.
Now`CPDescriptionOfObject()` function simply describes the window object as `window` rather than trying to serialise it into a huge description string.
2013-06-13 19:19:22 +01:00
Aparajita Fishman
0193632673
New: use a more compact representation of CGSize/CGPoint/CGRect in description.
2013-04-05 23:18:56 -04:00
Aparajita Fishman
95790d55d5
Object description formatting
...
- Made CPDescriptionOfObject smarter about detecting CG objects
- CPObject, CPArray, CPDictionary do a better (as in perfect) job of indenting nested objects
- CPDictionary is displayed using Cocoa-style key = value; notation
2013-01-25 19:19:01 +08:00
Martin Carlberg
e78f211e8a
Added @class and @global declaration and will now make a warning if class or global is not declared.
2013-01-14 18:36:39 +01:00
Martin Carlberg
df78df5908
Fixed class method that access isa property
2013-01-09 10:37:33 +01:00
Martin Carlberg
c297e926f9
Compiler now works with jake and can compiler the whole Cappuccino framework. A lot of test cases still fail
2012-12-16 17:38:47 +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
5e7125e310
Refs #1538 . Clean up, accidental global.
2012-05-14 21:12:31 +01:00
Alexander Ljungberg
bc370a2a5a
Merge pull request #1538 from mrcarlberg/cappuccino
...
---
Dont you hate when your logs of arrays and dictionaries display [Object object] when you have JavaScript objects in them. Now with this patch all JavaScript objects will be display with all attributes in a nice good looking way. Log CGRect, CGPoint and other JavaScript objects withour any hassle anymore. For example: console.log([myRect]);
2012-05-14 21:12:17 +01:00
Randall Luecke
7dc213995c
Added CPObject's performSelector:withObject: and tests
2012-01-31 16:35:49 -05:00
Francisco Ryan Tolmasky I
33e4fea0ec
Fix forwarding in Objective-J (and many infinite recursions, such as when there is no superclass):
...
1. Fix infinite recursion when no superclass and method isn't implemented. Closes #469 .
2. Fix infinite recursion when coercing an object without description implemented into a string. Closes #1289 .
3. Add -forwardingTargetForSelector: support.
Reviewed by @tolmasky.
2011-05-31 00:44:16 -07:00
Stephen Ierodiaconou
6a942630e4
Fixing spelling mistakes
2011-01-24 11:05:48 +02:00
Stephen Ierodiaconou
b70018bd80
Import fixes and lint
2010-12-26 01:34:37 +02:00
Francisco Ryan Tolmasky I
818c7dac3d
Fix for set accessor methods.
...
Reveiwed by me.
2010-12-24 16:29:40 -08:00
Randall Luecke
c80116e90d
Removed leftover from versioning fixes
2010-12-11 01:01:56 -05:00
Francisco Ryan Tolmasky I
f667c39ade
Further versioning fix.
...
Reviewed by me.
2010-12-10 09:04:13 -08:00
Randall Luecke
3a716c08f8
CPObject -version should be static and zero by default.
2010-12-10 10:01:33 -05:00
Ross Boucher
ff2aa51a68
Fix accidental global in CPObject.
2010-10-06 19:41:45 -07:00
Scott Kyle and Randall Luecke
1899250a53
Semicolons are nice...
2010-06-10 16:42:28 -05:00
cacaodev and Ross Boucher
0062caafdf
CPObject -implementsSelector:
2010-05-26 10:06:49 -07:00
Stephen Ierodiaconou and Ross Boucher
b98f0b1427
Apply style rules to Foundation
2010-05-26 08:53:05 -07:00
Francisco Ryan Tolmasky I
841ed9ea89
Major cleanup of globals and exports. Removed many accidental globals and no more need for eval in the initialization process. Also fixes Theme Showcase.
...
Reviewed by me.
2010-02-20 01:04:17 -08:00
Tom Robinson
e088280a5f
Implement description and toString for class objects.
2010-02-01 17:38:13 -08:00
Francisco Ryan Tolmasky I
5352d062d5
Fix for boundsOrigin and boundsSize being affected by bounds. Also changed UID to return a string instead of a Number.
...
Reviewed by me.
2009-12-20 17:02:06 -08:00
Francisco Ryan Tolmasky I
eb43e416ae
Added CPProxy class to support better undo proxying in CPUndoManager.
...
Closes #370 .
Closes #371 .
Reviewed by me.
2009-12-11 11:38:26 -08:00
lowell vizon and Francisco Ryan Tolmasky I
377f331b47
Documentation Edits: Replaced <code> and <pre> tags with \c; this allows monospaced text to be displayed with formatted text without needing a new line. See AppKit/CPView after generating documentation for examples. Also added - and + signs to the above changes when referring to either an -instanceMethod or a +classMethod. --lowell@cocoastep
...
Signed-off-by: Francisco Ryan Tolmasky I <francisco@280north.com >
2009-08-08 03:50:50 +08:00
Francisco Ryan Tolmasky I
c74642b641
Replacing several instances of -hash with the new -UID method. Partial fix for http://github.com/280north/cappuccino/issues#issue/10 .
...
Reviewed by andrew.
2009-06-07 15:47:21 -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
Francisco Ryan Tolmasky I
b1c410d42c
Merge branch 'master' of git@github.com:280north/cappuccino
2009-05-30 23:16:57 -07:00
Francisco Ryan Tolmasky I
f4b4d38165
Coat tailed CPEvents on native DOM events if they exist, saving the creation of many objects.
...
Reviewed by me.
2009-05-30 23:16:18 -07:00
Ross Boucher
7d4c2840eb
All Foundation classes briefed
...
Conflicts:
Foundation/CPSet.j
Foundation/CPTimer.j
Foundation/CPURLConnection.j
2009-05-30 13:46:42 -07:00
Ross Boucher
850125b8ab
Add documentation groups
2009-05-18 15:43:36 -07:00
Ross Boucher
f2ced978c9
methodForSelector: should return the implementation, not the method object (per Cocoa docs).
2009-04-09 15:07:19 -07:00
Vladimir Pouzanov and Ross Boucher
bbe1b58437
Added more api docs to CPObject
2009-03-05 14:57:50 -08:00
Ross Boucher
46a975b966
Updated CPObject's instancesRespondToSelector to return BOOL
2009-03-05 14:30:38 -08:00
Francisco Ryan Tolmasky I
a9b57d4187
Fix for +isKindOfClass: and +isMemberOfClass: not being there.
...
[#171 state:resolved].
Reviewed by me.
2008-12-16 19:43:48 -08:00
Ross Boucher
5c04acf840
Make isEqual: more like Cocoa's version.
2008-10-27 19:27:37 -07:00
Ross Boucher
f228934e54
Initial conversion to Doxygen style comments.
2008-10-12 15:57:01 -07:00
Tom Robinson
ba189afaf5
CPArray -componentsJoinedByString fixed
...
Moved objj object toString override to CPObject.j
Reviewed by me
[#89 state:resolved responsible:tlrobinson]
2008-10-05 18:34:06 -07:00
Ross Boucher
ce04c97053
Initial KVO implementation, not yet working.
2008-09-21 14:57:06 -07:00
Francisco Ryan Tolmasky I
e1fefd1018
Fixing merge conflicts.
...
Merge branch 'master' into merge_branch
Conflicts:
AppKit/CPView.j
2008-09-10 20:48:10 -07:00
Francisco Ryan Tolmasky I
5618b628cf
Modernized CPView drawing.
...
Fix for http://cappuccino.lighthouseapp.com/projects/16499-cappuccino/tickets/31-make-cpview-use-run-loop-drawing .
Fix for http://cappuccino.lighthouseapp.com/projects/16499/tickets/28-drawrect-is-called-twice .
[#31 state:resolved]
[#28 state:resolved]
Reviewed by Tom.
2008-09-10 20:26:36 -07:00
Ross Boucher
a40fbd7961
Add the first draft of documentation inline.
2008-09-10 15:11:37 -07:00
Francisco Ryan Tolmasky I
a97bb72800
Initial commit.
...
Reviewed by francisco, ross and tom.
2008-09-04 03:52:20 -07:00