Code: Select all
@interface MyClass : NSObject
{
}
- (void)aMethod:(NSString *)str;
@endCode: Select all
@implementation MyClass
{
}
- (void)aMethod:(NSString *)str
{
... implementation here ...
}
@endCode: Select all
@implementation MyClass : CPObject
{
}
- (void)aMethod:(CPString)str
{
... implementation here ...
}
@end* Protocols - I've requested it. Protocols are basically what we think of as interfaces in PHP/Java.
* Delcared properties do exist, but slightly differently using @accessors.
* Fast enumeration - JS already took that syntax