From: <ama...@us...> - 2006-09-04 00:32:51
|
Revision: 7645 http://svn.sourceforge.net/bibdesk/?rev=7645&view=rev Author: amaxwell Date: 2006-09-03 17:32:50 -0700 (Sun, 03 Sep 2006) Log Message: ----------- Use revised author API (replace fuzzyCompare with fuzzyEqual) Modified Paths: -------------- trunk/bibdesk/BibItem.m Modified: trunk/bibdesk/BibItem.m =================================================================== --- trunk/bibdesk/BibItem.m 2006-09-04 00:30:51 UTC (rev 7644) +++ trunk/bibdesk/BibItem.m 2006-09-04 00:32:50 UTC (rev 7645) @@ -2517,7 +2517,7 @@ NSMutableString *string = [[NSMutableString alloc] initWithCapacity:[oldString length] - [[groupName lastName] length] - 5]; BOOL first = YES; while(auth = [authEnum nextObject]){ - if([auth fuzzyCompare:groupName] != NSOrderedSame){ + if([auth fuzzyEqual:groupName] == NO){ if(first == YES) first = NO; else @@ -2638,7 +2638,7 @@ while(auth = [authEnum nextObject]){ if(first == YES) first = NO; else [string appendString:@" and "]; - if([auth fuzzyCompare:groupName] == NSOrderedSame){ + if([auth fuzzyEqual:groupName]){ [string appendString:newGroupName]; }else{ [string appendString:[auth name]]; @@ -2772,21 +2772,21 @@ - (void)setDate: (NSCalendarDate *)newDate{ if(newDate != pubDate){ [pubDate release]; - pubDate = [newDate copy]; + pubDate = [newDate retain]; } } - (void)setDateAdded:(NSCalendarDate *)newDateAdded { if(newDateAdded != dateAdded){ [dateAdded release]; - dateAdded = [newDateAdded copy]; + dateAdded = [newDateAdded retain]; } } - (void)setDateModified:(NSCalendarDate *)newDateModified { if(newDateModified != dateModified){ [dateModified release]; - dateModified = [newDateModified copy]; + dateModified = [newDateModified retain]; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |