adium 2156:cd50241d1704: Fix the Jabber service browser, since a...
commits at adium.im
commits at adium.im
Mon May 11 21:14:09 UTC 2009
details: http://hg.adium.im/adium/rev/cd50241d1704
revision: 2156:cd50241d1704
author: Zachary West <zacw at adium.im>
date: Mon May 11 17:13:50 2009 -0400
Fix the Jabber service browser, since a `copy` @property drops mutability.
diffstat:
Plugins/Purple Service/AMPurpleJabberNode.m | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r cd936175d302 -r cd50241d1704 Plugins/Purple Service/AMPurpleJabberNode.m
--- a/Plugins/Purple Service/AMPurpleJabberNode.m Mon May 11 11:46:45 2009 -0400
+++ b/Plugins/Purple Service/AMPurpleJabberNode.m Mon May 11 17:13:50 2009 -0400
@@ -17,7 +17,7 @@
@property (readwrite, retain, nonatomic) NSArray *identities;
@property (readwrite, retain, nonatomic) AMPurpleJabberNode *commandsNode;
@property (readwrite, assign, nonatomic) PurpleConnection *gc;
- at property (readwrite, copy, nonatomic) NSMutableArray *delegates;
+ at property (readwrite, retain, nonatomic) NSMutableArray *delegates;
@property (readwrite, retain, nonatomic) NSArray *itemsArray;
@end
@@ -131,7 +131,7 @@
name:queryName ? [NSString stringWithUTF8String:queryName] : nil
connection:self.gc];
// propagate delegates
- newnode.delegates = self.delegates;
+ newnode.delegates = [[self.delegates mutableCopy] autorelease];
[newItems addObject:newnode];
// check if we're a conference service
if ([[self jid] rangeOfString:@"@"].location == NSNotFound) { // we can't be one when we have an @
More information about the commits
mailing list