Don't synthesize the getter when the setter isn't synthesized.
This commit is contained in:
parent
666d710314
commit
8ea345c02c
3 changed files with 38 additions and 9 deletions
|
@ -378,6 +378,7 @@
|
||||||
GCC_DYNAMIC_NO_PIC = NO;
|
GCC_DYNAMIC_NO_PIC = NO;
|
||||||
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
|
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
|
||||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||||
|
GCC_VERSION = 4.2;
|
||||||
INFOPLIST_FILE = Info.plist;
|
INFOPLIST_FILE = Info.plist;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
WRAPPER_EXTENSION = framework;
|
WRAPPER_EXTENSION = framework;
|
||||||
|
@ -395,6 +396,7 @@
|
||||||
FRAMEWORK_VERSION = A;
|
FRAMEWORK_VERSION = A;
|
||||||
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
|
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
|
||||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||||
|
GCC_VERSION = 4.2;
|
||||||
INFOPLIST_FILE = Info.plist;
|
INFOPLIST_FILE = Info.plist;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
WRAPPER_EXTENSION = framework;
|
WRAPPER_EXTENSION = framework;
|
||||||
|
@ -411,6 +413,7 @@
|
||||||
4B1295EB1337BD2D00154B25 /* Release */,
|
4B1295EB1337BD2D00154B25 /* Release */,
|
||||||
);
|
);
|
||||||
defaultConfigurationIsVisible = 0;
|
defaultConfigurationIsVisible = 0;
|
||||||
|
defaultConfigurationName = Release;
|
||||||
};
|
};
|
||||||
4BC5598A1337A65400E345C7 /* Build configuration list for PBXProject "ObjXMPP" */ = {
|
4BC5598A1337A65400E345C7 /* Build configuration list for PBXProject "ObjXMPP" */ = {
|
||||||
isa = XCConfigurationList;
|
isa = XCConfigurationList;
|
||||||
|
|
|
@ -27,10 +27,6 @@
|
||||||
#import "XMPPExceptions.h"
|
#import "XMPPExceptions.h"
|
||||||
|
|
||||||
@implementation XMPPJID
|
@implementation XMPPJID
|
||||||
@synthesize node;
|
|
||||||
@synthesize domain;
|
|
||||||
@synthesize resource;
|
|
||||||
|
|
||||||
+ JID
|
+ JID
|
||||||
{
|
{
|
||||||
return [[[self alloc] init] autorelease];
|
return [[[self alloc] init] autorelease];
|
||||||
|
@ -112,6 +108,11 @@
|
||||||
[old release];
|
[old release];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (OFString*)node
|
||||||
|
{
|
||||||
|
return [[node copy] autorelease];
|
||||||
|
}
|
||||||
|
|
||||||
- (void)setDomain: (OFString*)domain_
|
- (void)setDomain: (OFString*)domain_
|
||||||
{
|
{
|
||||||
OFString *old = domain;
|
OFString *old = domain;
|
||||||
|
@ -134,6 +135,11 @@
|
||||||
[old release];
|
[old release];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (OFString*)domain
|
||||||
|
{
|
||||||
|
return [[node copy] autorelease];
|
||||||
|
}
|
||||||
|
|
||||||
- (void)setResource: (OFString*)resource_
|
- (void)setResource: (OFString*)resource_
|
||||||
{
|
{
|
||||||
OFString *old = resource;
|
OFString *old = resource;
|
||||||
|
@ -163,6 +169,11 @@
|
||||||
[old release];
|
[old release];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (OFString*)resource
|
||||||
|
{
|
||||||
|
return [[resource copy] autorelease];
|
||||||
|
}
|
||||||
|
|
||||||
- (OFString*)bareJID
|
- (OFString*)bareJID
|
||||||
{
|
{
|
||||||
if (node != nil)
|
if (node != nil)
|
||||||
|
|
|
@ -25,11 +25,6 @@
|
||||||
#import "XMPPJID.h"
|
#import "XMPPJID.h"
|
||||||
|
|
||||||
@implementation XMPPStanza
|
@implementation XMPPStanza
|
||||||
@synthesize from;
|
|
||||||
@synthesize to;
|
|
||||||
@synthesize type;
|
|
||||||
@synthesize ID;
|
|
||||||
|
|
||||||
+ stanzaWithName: (OFString*)name
|
+ stanzaWithName: (OFString*)name
|
||||||
{
|
{
|
||||||
return [[[self alloc] initWithName: name] autorelease];
|
return [[[self alloc] initWithName: name] autorelease];
|
||||||
|
@ -167,6 +162,11 @@
|
||||||
stringValue: from_.fullJID];
|
stringValue: from_.fullJID];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (OFString*)from
|
||||||
|
{
|
||||||
|
return [[from copy] autorelease];
|
||||||
|
}
|
||||||
|
|
||||||
- (void)setTo: (XMPPJID*)to_
|
- (void)setTo: (XMPPJID*)to_
|
||||||
{
|
{
|
||||||
XMPPJID *old = to;
|
XMPPJID *old = to;
|
||||||
|
@ -180,6 +180,11 @@
|
||||||
stringValue: to_.fullJID];
|
stringValue: to_.fullJID];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (OFString*)to
|
||||||
|
{
|
||||||
|
return [[to copy] autorelease];
|
||||||
|
}
|
||||||
|
|
||||||
- (void)setType: (OFString*)type_
|
- (void)setType: (OFString*)type_
|
||||||
{
|
{
|
||||||
OFString *old = type;
|
OFString *old = type;
|
||||||
|
@ -193,6 +198,11 @@
|
||||||
stringValue: type];
|
stringValue: type];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (OFString*)type
|
||||||
|
{
|
||||||
|
return [[type copy] autorelease];
|
||||||
|
}
|
||||||
|
|
||||||
- (void)setID: (OFString*)ID_
|
- (void)setID: (OFString*)ID_
|
||||||
{
|
{
|
||||||
OFString* old = ID;
|
OFString* old = ID;
|
||||||
|
@ -205,4 +215,9 @@
|
||||||
[self addAttributeWithName: @"id"
|
[self addAttributeWithName: @"id"
|
||||||
stringValue: ID];
|
stringValue: ID];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (OFString*)ID
|
||||||
|
{
|
||||||
|
return [[ID copy] autorelease];
|
||||||
|
}
|
||||||
@end
|
@end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue