Revision: 11387
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=11387&view=rev
Author: hofman
Date: 2007-10-25 09:37:57 -0700 (Thu, 25 Oct 2007)
Log Message:
-----------
Archive files in bibitem.
Modified Paths:
--------------
branches/TRY_ARM_FILE_INTERFACE/bibdesk/BibItem.m
Modified: branches/TRY_ARM_FILE_INTERFACE/bibdesk/BibItem.m
===================================================================
--- branches/TRY_ARM_FILE_INTERFACE/bibdesk/BibItem.m 2007-10-25 16:27:58 UTC
(rev 11386)
+++ branches/TRY_ARM_FILE_INTERFACE/bibdesk/BibItem.m 2007-10-25 16:37:57 UTC
(rev 11387)
@@ -328,8 +328,8 @@
[self setDateModified:[coder decodeObjectForKey:@"dateModified"]];
groups = [[NSMutableDictionary alloc] initWithCapacity:5];
cachedURLs = [[NSMutableDictionary alloc] initWithCapacity:5];
- // !!! TODO
- // files = [[coder decodeObjectForKey:@"files"] retain];
+ files = [[coder decodeObjectForKey:@"files"] mutableCopy];
+ [files makeObjectsPerformSelector:@selector(setDelegate:)
withObject:self];
// set by the document, which we don't archive
owner = nil;
fileOrder = nil;
@@ -355,8 +355,7 @@
[coder encodeObject:pubType forKey:@"pubType"];
[coder encodeObject:pubFields forKey:@"pubFields"];
[coder encodeBool:hasBeenEdited forKey:@"hasBeenEdited"];
- // !!! TODO
- // [coder encodeObject:files forKey:@"files"];
+ [coder encodeObject:files forKey:@"files"];
} else {
[coder encodeDataObject:[NSKeyedArchiver
archivedDataWithRootObject:self]];
}
@@ -2459,8 +2458,8 @@
- (void)_createFilesArray
{
- [files release];
- files = [NSMutableArray new];
+ if (files == nil)
+ files = [NSMutableArray new];
NSUInteger i = 0;
NSString *value, *key = [NSString stringWithFormat:@"Bdsk-File-%d", i];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit