mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-27 02:25:36 +00:00
New: Added the basic protocols CPObject and CPCoding
This commit is contained in:
1 parent
0afe21dd29
commit
9f7d0578e5
2 files changed
+37
-2
No files matched your search
@@ -356,7 +356,7 @@ CPDeleteForwardKeyCode = 46;
|
||||
var CPResponderNextResponderKey = @"CPResponderNextResponderKey",
|
||||
CPResponderMenuKey = @"CPResponderMenuKey";
|
||||
|
||||
@implementation CPResponder (CPCoding)
|
||||
@implementation CPResponder (CPCoding) <CPCoding>
|
||||
|
||||
/*!
|
||||
Initializes the responder with data from a coder.
|
||||
|
||||
+36
-1
@@ -67,7 +67,42 @@ CPLog(@"Got some class: %@", inst);
|
||||
|
||||
@global CPInvalidArgumentException
|
||||
|
||||
@implementation CPObject
|
||||
|
||||
@protocol CPObject
|
||||
|
||||
- (BOOL)isEqual:(id)object;
|
||||
- (CPUInteger)hash;
|
||||
|
||||
- (Class)superclass;
|
||||
- (Class)class;
|
||||
- (id)self;
|
||||
|
||||
- (id)performSelector:(SEL)aSelector;
|
||||
- (id)performSelector:(SEL)aSelector withObject:(id)object;
|
||||
- (id)performSelector:(SEL)aSelector withObject:(id)object1 withObject:(id)object2;
|
||||
|
||||
- (BOOL)isProxy;
|
||||
|
||||
- (BOOL)isKindOfClass:(Class)aClass;
|
||||
- (BOOL)isMemberOfClass:(Class)aClass;
|
||||
- (BOOL)conformsToProtocol:(Protocol)aProtocol;
|
||||
|
||||
- (BOOL)respondsToSelector:(SEL)aSelector;
|
||||
|
||||
- (CPString)description;
|
||||
@optional
|
||||
- (CPString)debugDescription;
|
||||
|
||||
@end
|
||||
|
||||
@protocol CPCoding
|
||||
|
||||
- (void)encodeWithCoder:(CPCoder)aCoder;
|
||||
- (id)initWithCoder:(CPCoder)aDecoder;
|
||||
|
||||
@end
|
||||
|
||||
@implementation CPObject <CPObject>
|
||||
{
|
||||
Class isa;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user