Revision: 17929
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=17929&view=rev
Author: hofman
Date: 2011-06-03 11:49:22 +0000 (Fri, 03 Jun 2011)
Log Message:
-----------
keep date formatter for endnote string
Modified Paths:
--------------
trunk/bibdesk/BibItem.m
Modified: trunk/bibdesk/BibItem.m
===================================================================
--- trunk/bibdesk/BibItem.m 2011-06-03 10:58:13 UTC (rev 17928)
+++ trunk/bibdesk/BibItem.m 2011-06-03 11:49:22 UTC (rev 17929)
@@ -2151,9 +2151,12 @@
AddXMLField(@"custom8",@"Custom8");
NSDate *date = [self dateAdded];
- NSDateFormatter *formatter = [[[NSDateFormatter alloc] init] autorelease];
- [formatter setFormatterBehavior:NSDateFormatterBehavior10_4];
- [formatter setDateFormat:@"dd/MM/yyyy"];
+ static NSDateFormatter *formatter = nil;
+ if (formatter == nil) {
+ formatter = [[NSDateFormatter alloc] init];
+ [formatter setFormatterBehavior:NSDateFormatterBehavior10_4];
+ [formatter setDateFormat:@"dd/MM/yyyy"];
+ }
if ((date = [self dateAdded]))
[s appendStrings:@"<added-date>", [formatter stringFromDate:date],
@"</added-date>", nil];
if ((date = [self dateModified]))
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today.
http://p.sf.net/sfu/quest-dev2dev2
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit