Revision: 26545 http://sourceforge.net/p/bibdesk/svn/26545 Author: hofman Date: 2021-08-02 17:25:37 +0000 (Mon, 02 Aug 2021) Log Message: ----------- remove old method to replace a view with an animation
Modified Paths: -------------- trunk/bibdesk/BibDocument_Search.m Modified: trunk/bibdesk/BibDocument_Search.m =================================================================== --- trunk/bibdesk/BibDocument_Search.m 2021-08-02 16:48:28 UTC (rev 26544) +++ trunk/bibdesk/BibDocument_Search.m 2021-08-02 17:25:37 UTC (rev 26545) @@ -64,7 +64,6 @@ #import "NSDictionary_BDSKExtensions.h" #import "BDSKEdgeView.h" #import "BDSKButtonBar.h" -#import "NSAnimationContext_BDSKExtensions.h" #import "NSColor_BDSKExtensions.h" @@ -311,44 +310,6 @@ #pragma mark File Content Search -- (void)animateReplaceView:(NSView *)oldView with:(NSView *)newView { - NSView *contentView = [oldView superview]; - NSTimeInterval duration = [NSAnimationContext defaultAnimationTimeInterval]; - - [newView setFrame:[oldView frame]]; - [newView setHidden:NO]; - - if (duration > 0.0) { - BOOL needsLayer = [contentView wantsLayer] == NO && [contentView layer] == nil; - if (needsLayer) { - [contentView setWantsLayer:YES]; - [contentView displayIfNeeded]; - } - [NSAnimationContext runAnimationGroup:^(NSAnimationContext *context){ - [context setDuration:duration]; - [[contentView animator] replaceSubview:oldView with:newView]; - if (RUNNING_AFTER(10_13)) { - for (NSView *controlView in [mainBox subviews]) { - if ([controlView respondsToSelector:@selector(reflectView:animate:)]) - [(BDSKEdgeView *)controlView reflectView:newView animate:YES]; - } - } - } completionHandler:^{ - if (needsLayer) - [contentView setWantsLayer:NO]; - }]; - } else { - [contentView replaceSubview:oldView with:newView]; - if (RUNNING_AFTER(10_13)) { - for (NSView *controlView in [mainBox subviews]) { - if ([controlView respondsToSelector:@selector(reflectView:animate:)]) - [(BDSKEdgeView *)controlView reflectView:newView animate:NO]; - } - } - } - -} - - (void)showFileContentSearch { if(fileSearchController == nil){ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Bibdesk-commit mailing list Bibdesk-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-commit