Index: ObjXMPP.xcodeproj/project.pbxproj ================================================================== --- ObjXMPP.xcodeproj/project.pbxproj +++ ObjXMPP.xcodeproj/project.pbxproj @@ -376,10 +376,11 @@ DYLIB_CURRENT_VERSION = 0; FRAMEWORK_VERSION = A; GCC_DYNAMIC_NO_PIC = NO; GCC_ENABLE_OBJC_EXCEPTIONS = YES; GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_VERSION = 4.2; INFOPLIST_FILE = Info.plist; PRODUCT_NAME = "$(TARGET_NAME)"; WRAPPER_EXTENSION = framework; }; name = Debug; @@ -393,10 +394,11 @@ DYLIB_COMPATIBILITY_VERSION = 0; DYLIB_CURRENT_VERSION = 0; FRAMEWORK_VERSION = A; GCC_ENABLE_OBJC_EXCEPTIONS = YES; GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_VERSION = 4.2; INFOPLIST_FILE = Info.plist; PRODUCT_NAME = "$(TARGET_NAME)"; WRAPPER_EXTENSION = framework; }; name = Release; @@ -409,10 +411,11 @@ buildConfigurations = ( 4B1295EA1337BD2D00154B25 /* Debug */, 4B1295EB1337BD2D00154B25 /* Release */, ); defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; }; 4BC5598A1337A65400E345C7 /* Build configuration list for PBXProject "ObjXMPP" */ = { isa = XCConfigurationList; buildConfigurations = ( 4BC559B61337A65500E345C7 /* Debug */, Index: src/XMPPJID.m ================================================================== --- src/XMPPJID.m +++ src/XMPPJID.m @@ -25,14 +25,10 @@ #import "XMPPJID.h" #import "XMPPExceptions.h" @implementation XMPPJID -@synthesize node; -@synthesize domain; -@synthesize resource; - + JID { return [[[self alloc] init] autorelease]; } @@ -109,10 +105,15 @@ free(nodepart); } [old release]; } + +- (OFString*)node +{ + return [[node copy] autorelease]; +} - (void)setDomain: (OFString*)domain_ { OFString *old = domain; char *srv; @@ -131,10 +132,15 @@ free(srv); } [old release]; } + +- (OFString*)domain +{ + return [[node copy] autorelease]; +} - (void)setResource: (OFString*)resource_ { OFString *old = resource; char *res; @@ -160,10 +166,15 @@ free(res); } [old release]; } + +- (OFString*)resource +{ + return [[resource copy] autorelease]; +} - (OFString*)bareJID { if (node != nil) return [OFString stringWithFormat: @"%@@%@", node, domain]; Index: src/XMPPStanza.m ================================================================== --- src/XMPPStanza.m +++ src/XMPPStanza.m @@ -23,15 +23,10 @@ #import "XMPPStanza.h" #import "XMPPJID.h" @implementation XMPPStanza -@synthesize from; -@synthesize to; -@synthesize type; -@synthesize ID; - + stanzaWithName: (OFString*)name { return [[[self alloc] initWithName: name] autorelease]; } @@ -164,10 +159,15 @@ if (from_ != nil) [self addAttributeWithName: @"from" stringValue: from_.fullJID]; } + +- (OFString*)from +{ + return [[from copy] autorelease]; +} - (void)setTo: (XMPPJID*)to_ { XMPPJID *old = to; to = [to_ copy]; @@ -177,10 +177,15 @@ if (to_ != nil) [self addAttributeWithName: @"to" stringValue: to_.fullJID]; } + +- (OFString*)to +{ + return [[to copy] autorelease]; +} - (void)setType: (OFString*)type_ { OFString *old = type; type = [type_ copy]; @@ -190,10 +195,15 @@ if (type_ != nil) [self addAttributeWithName: @"type" stringValue: type]; } + +- (OFString*)type +{ + return [[type copy] autorelease]; +} - (void)setID: (OFString*)ID_ { OFString* old = ID; ID = [ID_ copy]; @@ -203,6 +213,11 @@ if (ID_ != nil) [self addAttributeWithName: @"id" stringValue: ID]; } + +- (OFString*)ID +{ + return [[ID copy] autorelease]; +} @end