Delete RSCoreObjC.

This commit is contained in:
Brent Simmons
2024-11-15 20:45:45 -08:00
parent 4aaee795f9
commit 357ea22da4
13 changed files with 257 additions and 259 deletions

View File

@@ -0,0 +1,23 @@
//
// NSObject+NSSharingService_RSCore.h
// RSCore
//
// Created by Brent Simmons on 11/3/24.
//
@import AppKit;
@interface NSSharingService (NoDeprecationWarning)
// The only way to create custom UI — a Share menu, for instance —
// is to use the unfortunately deprecated
// +[NSSharingService sharingServicesForItems:].
// This cover method allows us to not generate a warning.
//
// We know its deprecated, and we dont want to be bugged
// about it every time we build. (If anyone from Apple
// is reading this — a replacement would be very welcome!)
+ (NSArray *)sharingServicesForItems_noDeprecationWarning:(NSArray *)items;
@end

View File

@@ -0,0 +1,22 @@
//
// NSSharingService+Extension.m
// RSCore
//
// Created by Brent Simmons on 11/3/24.
//
#import "NSSharingService+Extension.h"
@implementation NSSharingService (NoDeprecationWarning)
+ (NSArray *)sharingServicesForItems_noDeprecationWarning:(NSArray *)items {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
return [NSSharingService sharingServicesForItems:items];
#pragma clang diagnostic pop
}
@end

View File

@@ -8,7 +8,6 @@
import AppKit
import RSCore
import RSCoreObjC
import Articles
import Account