CocoaExtension // Add NSWIndowController.orderFront().
This commit is contained in:
parent
63d56d8132
commit
5e49fe31ed
|
@ -10,6 +10,10 @@ import Cocoa
|
||||||
import InputMethodKit
|
import InputMethodKit
|
||||||
|
|
||||||
extension NSWindowController {
|
extension NSWindowController {
|
||||||
|
public func orderFront() {
|
||||||
|
window?.orderFront(self)
|
||||||
|
}
|
||||||
|
|
||||||
/// 設定選字窗的顯示位置。
|
/// 設定選字窗的顯示位置。
|
||||||
///
|
///
|
||||||
/// 需注意:該函式會藉由設定選字窗左上角頂點的方式、使選字窗始終位於某個螢幕之內。
|
/// 需注意:該函式會藉由設定選字窗左上角頂點的方式、使選字窗始終位於某個螢幕之內。
|
||||||
|
|
Loading…
Reference in New Issue