Revision: 18466
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=18466&view=rev
Author: hofman
Date: 2012-02-02 13:16:45 +0000 (Thu, 02 Feb 2012)
Log Message:
-----------
Use class methods to (un)archive an array of pubs from BibItem class
Modified Paths:
--------------
trunk/bibdesk/BibDocument+Scripting.m
Modified: trunk/bibdesk/BibDocument+Scripting.m
===================================================================
--- trunk/bibdesk/BibDocument+Scripting.m 2012-02-02 13:14:04 UTC (rev
18465)
+++ trunk/bibdesk/BibDocument+Scripting.m 2012-02-02 13:16:45 UTC (rev
18466)
@@ -224,9 +224,7 @@
- (id)copyScriptingValue:(id)value forKey:(NSString *)key
withProperties:(NSDictionary *)properties {
if ([key isEqualToString:@"scriptingPublications"]) {
- [NSString setMacroResolverForUnarchiving:[self macroResolver]];
- id copiedValue = [[NSKeyedUnarchiver
unarchiveObjectWithData:[NSKeyedArchiver archivedDataWithRootObject:value]]
retain];
- [NSString setMacroResolverForUnarchiving:nil];
+ id copiedValue = [[BibItem publicationsFromArchivedData:[BibItem
archivedPublications:value] macroResolver:[self macroResolver]] retain];
[copiedValue setValue:[self macroResolver] forKey:@"macroResolver"];
if ([properties count]) {
for (id item in copiedValue) {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit