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
|
@ -25,11 +25,6 @@
|
|||
#import "XMPPJID.h"
|
||||
|
||||
@implementation XMPPStanza
|
||||
@synthesize from;
|
||||
@synthesize to;
|
||||
@synthesize type;
|
||||
@synthesize ID;
|
||||
|
||||
+ stanzaWithName: (OFString*)name
|
||||
{
|
||||
return [[[self alloc] initWithName: name] autorelease];
|
||||
|
@ -167,6 +162,11 @@
|
|||
stringValue: from_.fullJID];
|
||||
}
|
||||
|
||||
- (OFString*)from
|
||||
{
|
||||
return [[from copy] autorelease];
|
||||
}
|
||||
|
||||
- (void)setTo: (XMPPJID*)to_
|
||||
{
|
||||
XMPPJID *old = to;
|
||||
|
@ -180,6 +180,11 @@
|
|||
stringValue: to_.fullJID];
|
||||
}
|
||||
|
||||
- (OFString*)to
|
||||
{
|
||||
return [[to copy] autorelease];
|
||||
}
|
||||
|
||||
- (void)setType: (OFString*)type_
|
||||
{
|
||||
OFString *old = type;
|
||||
|
@ -193,6 +198,11 @@
|
|||
stringValue: type];
|
||||
}
|
||||
|
||||
- (OFString*)type
|
||||
{
|
||||
return [[type copy] autorelease];
|
||||
}
|
||||
|
||||
- (void)setID: (OFString*)ID_
|
||||
{
|
||||
OFString* old = ID;
|
||||
|
@ -205,4 +215,9 @@
|
|||
[self addAttributeWithName: @"id"
|
||||
stringValue: ID];
|
||||
}
|
||||
|
||||
- (OFString*)ID
|
||||
{
|
||||
return [[ID copy] autorelease];
|
||||
}
|
||||
@end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue