mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2024-12-03 17:51:25 +00:00
37 lines
574 B
Objective-C
37 lines
574 B
Objective-C
#import "O2PDFBlock.h"
|
|
#import <Foundation/NSArray.h>
|
|
|
|
@implementation O2PDFBlock
|
|
|
|
+pdfBlock {
|
|
return [[[O2PDFBlock alloc] init] autorelease];
|
|
}
|
|
|
|
-init {
|
|
_objects=[[NSMutableArray alloc] init];
|
|
return self;
|
|
}
|
|
|
|
-(void)dealloc {
|
|
[_objects release];
|
|
[super dealloc];
|
|
}
|
|
|
|
-(O2PDFObjectType)objectType {
|
|
return kO2PDFObjectTypeBlock;
|
|
}
|
|
|
|
-(NSArray *)objects {
|
|
return _objects;
|
|
}
|
|
|
|
-(void)addObject:object {
|
|
[_objects addObject:object];
|
|
}
|
|
|
|
-(NSString *)description {
|
|
return [NSString stringWithFormat:@"<%@ %x> { %@ }",[self class],self,_objects];
|
|
}
|
|
|
|
@end
|