Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (id)init
- {
- fprintf(stderr, "init\n");
- self = [super init];
- if (self) {
- fprintf(stderr, "setting the lock\n");
- [self setLock:[[[NSConditionLock alloc] autorelease] initWithCondition:0]];
- [self setEventQ:[[[NSMutableArray alloc] autorelease] initWithCapacity:10]];
- }
- return self;
- }
- - (id)initWithCoder:(NSCoder *)aDecoder
- {
- fprintf(stderr, "initWithCoder\n");
- self = [super initWithCoder:aDecoder];
- if (self) {
- fprintf(stderr, "setting the lock\n");
- [self setLock:[[[NSConditionLock alloc] autorelease] initWithCondition:0]];
- [self setEventQ:[[[NSMutableArray alloc] autorelease] initWithCapacity:10]];
- }
- return self;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement