Revision: 25276 http://sourceforge.net/p/bibdesk/svn/25276 Author: hofman Date: 2020-12-31 10:31:57 +0000 (Thu, 31 Dec 2020) Log Message: ----------- Use NSWorkspace to get file icon for ql thumbnail
Modified Paths: -------------- trunk/QuickLook-BibDesk/BDSKSpotlightIconController.m Modified: trunk/QuickLook-BibDesk/BDSKSpotlightIconController.m =================================================================== --- trunk/QuickLook-BibDesk/BDSKSpotlightIconController.m 2020-12-31 10:30:13 UTC (rev 25275) +++ trunk/QuickLook-BibDesk/BDSKSpotlightIconController.m 2020-12-31 10:31:57 UTC (rev 25276) @@ -88,13 +88,8 @@ { if (self = [super init]) { // manually load the nib, since +[NSBundle loadNibName...] won't work -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wpartial-availability" -#pragma clang diagnostic ignored "-Wdeprecated-declarations" - if ([bundle respondsToSelector:@selector(loadNibNamed:owner:topLevelObjects:)] ? - [bundle loadNibNamed:@"SpotlightFileIconController" owner:self topLevelObjects:NULL] : - [bundle loadNibFile:@"SpotlightFileIconController" externalNameTable:[NSDictionary dictionaryWithObject:self forKey:@"NSOwner"] withZone:[self zone]]) { -#pragma clang diagnostic pop + + if ([bundle loadNibNamed:@"SpotlightFileIconController" owner:self topLevelObjects:NULL]) { values = [[NSMutableArray alloc] initWithCapacity:16]; dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setDateFormat:@"yyyy"]; 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