From: <mm...@us...> - 2004-02-27 23:27:28
|
Update of /cvsroot/bibdesk/bibdesk In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6559 Modified Files: BibDocument.m Log Message: now re-filters from the quick-search field after publication changes. Because this touches the quick-search field, this needs to be tested in Jaguar. Index: BibDocument.m =================================================================== RCS file: /cvsroot/bibdesk/bibdesk/BibDocument.m,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** BibDocument.m 27 Feb 2004 22:40:49 -0000 1.30 --- BibDocument.m 27 Feb 2004 23:18:27 -0000 1.31 *************** *** 1570,1576 **** // dead simple for now NSLog(@"got handleBibItemChangedNotification with userinfo %@", [notification userInfo]); ! [self updateUI]; // should: check if we're sorting by the key that was changed and resort // should: also check if we're filtering by the key that was changed and refilter. } --- 1570,1588 ---- // dead simple for now NSLog(@"got handleBibItemChangedNotification with userinfo %@", [notification userInfo]); ! NSDictionary *userInfo = [notification userInfo]; ! ! NSString *changedKey = [userInfo objectForKey:@"key"]; ! ! if([quickSearchKey isEqualToString:changedKey] || ! [quickSearchKey isEqualToString:@"All Fields"]){ ! if(BDSK_USING_JAGUAR){ ! [self searchFieldAction:searchFieldTextField]; ! }else{ ! [self searchFieldAction:searchField]; ! } ! } // should: check if we're sorting by the key that was changed and resort // should: also check if we're filtering by the key that was changed and refilter. + } |