From: <ho...@us...> - 2006-09-01 09:32:28
|
Revision: 7621 http://svn.sourceforge.net/bibdesk/?rev=7621&view=rev Author: hofman Date: 2006-09-01 02:32:17 -0700 (Fri, 01 Sep 2006) Log Message: ----------- Replace comment Modified Paths: -------------- trunk/bibdesk/BibItem.m Modified: trunk/bibdesk/BibItem.m =================================================================== --- trunk/bibdesk/BibItem.m 2006-09-01 00:01:15 UTC (rev 7620) +++ trunk/bibdesk/BibItem.m 2006-09-01 09:32:17 UTC (rev 7621) @@ -228,7 +228,8 @@ // Never copy between different documents, as this messes up the macroResolver for complex string values - (id)copyWithZone:(NSZone *)zone{ - // @@ why is isNew set to YES here? does this fit isEqualToItem: semantics? + // we set isNew to YES as copied items are always added as new items to a document, e.g. for duplicates and text import, so the Date-Added should be reset + // note that unless someone uses Date-Added or Date-Modified as a default field, a copy is equal according to isEqualToItem: BibItem *theCopy = [[[self class] allocWithZone: zone] initWithType:pubType fileType:fileType pubFields:pubFields isNew:YES]; [theCopy setCiteKeyString: citeKey]; [theCopy setDate: pubDate]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |