mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-03 04:17:44 +01:00
Fix deprecation warnings.
This commit is contained in:
parent
5b1db51fb9
commit
766b5f8869
@ -246,7 +246,7 @@ private extension ActivityManager {
|
||||
|
||||
func updateSelectingActivityFeedSearchAttributes(with feed: WebFeed) {
|
||||
|
||||
let attributeSet = CSSearchableItemAttributeSet(itemContentType: kUTTypeItem as String)
|
||||
let attributeSet = CSSearchableItemAttributeSet(contentType: UTType.item)
|
||||
attributeSet.title = feed.nameForDisplay
|
||||
attributeSet.keywords = makeKeywords(feed.nameForDisplay)
|
||||
attributeSet.relatedUniqueIdentifier = ActivityManager.identifier(for: feed)
|
||||
@ -265,7 +265,7 @@ private extension ActivityManager {
|
||||
// itself because the relatedUniqueIdentifier on the activity attributeset is populated.
|
||||
if let attributeSet = activity.contentAttributeSet {
|
||||
let identifier = attributeSet.relatedUniqueIdentifier
|
||||
let tempAttributeSet = CSSearchableItemAttributeSet(itemContentType: kUTTypeItem as String)
|
||||
let tempAttributeSet = CSSearchableItemAttributeSet(contentType: UTType.item)
|
||||
let searchableItem = CSSearchableItem(uniqueIdentifier: identifier, domainIdentifier: nil, attributeSet: tempAttributeSet)
|
||||
CSSearchableIndex.default().indexSearchableItems([searchableItem])
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user