From: Adam M. <ama...@us...> - 2006-02-06 21:25:15
|
Update of /cvsroot/bibdesk/bibdesk In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20494 Modified Files: Tag: BR_1x BibDocument.m Log Message: Set date-created to the current date when adding pubs via the pasteboard, since the parser no longer does that for us if we're dragging between documents. Index: BibDocument.m =================================================================== RCS file: /cvsroot/bibdesk/bibdesk/BibDocument.m,v retrieving revision 1.307.2.329 retrieving revision 1.307.2.330 diff -C2 -d -r1.307.2.329 -r1.307.2.330 *** BibDocument.m 6 Feb 2006 19:52:47 -0000 1.307.2.329 --- BibDocument.m 6 Feb 2006 21:25:07 -0000 1.307.2.330 *************** *** 1906,1909 **** --- 1906,1913 ---- if ([type isEqualToString:NSFilenamesPboardType]) [newPubs makeObjectsPerformSelector:@selector(autoFilePaper)]; + + // set Date-Added to the current date, since unarchived items will have their own (incorrect) date + NSString *todayDescription = [[NSCalendarDate date] description]; + [newPubs makeObjectsPerformSelector:@selector(setField:toValue:) withObject:BDSKDateCreatedString withObject:todayDescription]; if([[OFPreferenceWrapper sharedPreferenceWrapper] boolForKey:BDSKEditOnPasteKey]) { |