[29752] users/rhwood/MacPorts.Framework
source_changes at macosforge.org
source_changes at macosforge.org
Mon Oct 8 12:21:25 PDT 2007
Revision: 29752
http://trac.macosforge.org/projects/macports/changeset/29752
Author: rhwood at macports.org
Date: 2007-10-08 12:21:25 -0700 (Mon, 08 Oct 2007)
Log Message:
-----------
Add description method to dump port as a string
Delloc the embedded NSDictionary when we dealloc ourselves
Modified Paths:
--------------
users/rhwood/MacPorts.Framework/MPPort.h
users/rhwood/MacPorts.Framework/MPPort.m
Modified: users/rhwood/MacPorts.Framework/MPPort.h
===================================================================
--- users/rhwood/MacPorts.Framework/MPPort.h 2007-10-08 18:47:09 UTC (rev 29751)
+++ users/rhwood/MacPorts.Framework/MPPort.h 2007-10-08 19:21:25 UTC (rev 29752)
@@ -33,6 +33,7 @@
- (void)removeObjectForKey:(id)aKey;
- (void)setObject:(id)anObject forKey:(id)aKey;
- (void)setDictionary:(NSDictionary *)otherDictionary;
+- (NSString *)description;
+ (Class)classForKeyedUnarchiver;
- (Class)classForKeyedArchiver;
Modified: users/rhwood/MacPorts.Framework/MPPort.m
===================================================================
--- users/rhwood/MacPorts.Framework/MPPort.m 2007-10-08 18:47:09 UTC (rev 29751)
+++ users/rhwood/MacPorts.Framework/MPPort.m 2007-10-08 19:21:25 UTC (rev 29752)
@@ -40,6 +40,7 @@
}
- (void) dealloc {
+ [embeddedDictionary release];
[super dealloc];
}
@@ -149,6 +150,10 @@
[self setObject:[NSNumber numberWithInt:state] forKey:@"state"];
}
+- (NSString *)description {
+ return [embeddedDictionary description];
+}
+
- (Class)classForKeyedArchiver {
return [MPPort class];
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071008/ddfbe6d8/attachment.html
More information about the macports-changes
mailing list