Port to ObjC1.

FossilOrigin-Name: 7f37e545cfcebaba2be9b426cdd4fc2c425982278d1baf68da55458943ad606f
This commit is contained in:
Jonathan Schleifer 2012-10-30 20:27:20 +00:00
parent 279f33ec61
commit 9fbc9c9b30
7 changed files with 374 additions and 189 deletions

View file

@ -22,11 +22,11 @@
#import <ObjFW/OFString.h>
#import <ObjFW/macros.h>
#import "IRCChannel.h"
@implementation IRCChannel
@synthesize name, users;
+ channelWithName: (OFString*)name
{
return [[[self alloc] initWithName: name] autorelease];
@ -55,9 +55,19 @@
[super dealloc];
}
- (OFString*)name
{
OF_GETTER(name, YES)
}
- (OFSet*)users
{
return [[users copy] autorelease];
}
- (OFString*)description
{
return name;
return [[name copy] autorelease];
}
- (void)IRC_addUser: (OFString*)user