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
|
@ -27,10 +27,6 @@
|
|||
#import "XMPPExceptions.h"
|
||||
|
||||
@implementation XMPPJID
|
||||
@synthesize node;
|
||||
@synthesize domain;
|
||||
@synthesize resource;
|
||||
|
||||
+ JID
|
||||
{
|
||||
return [[[self alloc] init] autorelease];
|
||||
|
@ -112,6 +108,11 @@
|
|||
[old release];
|
||||
}
|
||||
|
||||
- (OFString*)node
|
||||
{
|
||||
return [[node copy] autorelease];
|
||||
}
|
||||
|
||||
- (void)setDomain: (OFString*)domain_
|
||||
{
|
||||
OFString *old = domain;
|
||||
|
@ -134,6 +135,11 @@
|
|||
[old release];
|
||||
}
|
||||
|
||||
- (OFString*)domain
|
||||
{
|
||||
return [[node copy] autorelease];
|
||||
}
|
||||
|
||||
- (void)setResource: (OFString*)resource_
|
||||
{
|
||||
OFString *old = resource;
|
||||
|
@ -163,6 +169,11 @@
|
|||
[old release];
|
||||
}
|
||||
|
||||
- (OFString*)resource
|
||||
{
|
||||
return [[resource copy] autorelease];
|
||||
}
|
||||
|
||||
- (OFString*)bareJID
|
||||
{
|
||||
if (node != nil)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue