Skip to content

Commit 32db224

Browse files
committed
[apinotes] Rename NSApplication activateIgnoringOtherApps(_:) to activate(ignoringOtherApps:)
1 parent a00fa74 commit 32db224

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

apinotes/AppKit.apinotes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,9 @@ Classes:
353353
MethodKind: Class
354354
- Name: NSApplication
355355
Methods:
356+
- Selector: 'activateIgnoringOtherApps:'
357+
SwiftName: activate(ignoringOtherApps:)
358+
MethodKind: Instance
356359
- Selector: 'runModalSession:'
357360
SwiftName: runModalSession(_:)
358361
MethodKind: Instance

stdlib/public/SDK/AppKit/AppKit.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,10 @@ extension NSWindowController {
141141
self.dismissController(sender)
142142
}
143143
}
144+
145+
extension NSApplication {
146+
@available(*, deprecated, renamed: "activate(ignoringOtherApps:)")
147+
@nonobjc func activateIgnoringOtherApps(_ flag: Bool) {
148+
self.activate(ignoringOtherApps: flag)
149+
}
150+
}

0 commit comments

Comments
 (0)