Skip to content

Commit f840a8e

Browse files
committed
MainAssembly // Say goodbye to SessionCtl.
1 parent 64d65e7 commit f840a8e

2 files changed

Lines changed: 4 additions & 17 deletions

File tree

Packages/vChewing_MainAssembly4Darwin/Sources/MainAssembly4Darwin/SessionController/SessionCtl.swift renamed to Packages/vChewing_MainAssembly4Darwin/Sources/MainAssembly4Darwin/SessionController/SessionControllerSputnik.swift

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,6 @@
66
// marks, or product names of Contributor, except as required to fulfill notice
77
// requirements defined in MIT License.
88

9-
// MARK: - SessionCtl
10-
11-
/// 輸入法控制模組,乃在輸入法端用以控制輸入行為的基礎型別。
12-
///
13-
/// IMKInputController 完全實現了相關協定所定義的內容。
14-
/// 一般情況下,研發者不會複寫此型別,而是提供一個委任物件、
15-
/// 藉此實現研發者想製作的方法/函式。協定方法的 IMKInputController 版本
16-
/// 檢查委任物件是否實現了方法:若存在的話,就調用委任物件內的版本。
17-
/// - Remark: 在輸入法的主函式中分配的 IMKServer 型別為客體應用程式創建的每個
18-
/// 輸入會話創建一個控制器型別。因此,對於每個輸入會話,都有一個對應的 IMKInputController。
19-
@objc(SessionCtl) // 必須加上 ObjC,因為 IMK 是用 ObjC 寫的。
20-
@MainActor
21-
public final class SessionCtl: IMKInputSessionController {}
229
// MARK: - SessionControllerSputnik
2310

2411
public struct SessionControllerSputnik {

Sources/vChewingIME_macOS/Resources/Info.plist

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,15 @@
100100
<key>InputMethodConnectionName</key>
101101
<string>$(PRODUCT_BUNDLE_IDENTIFIER)_Connection</string>
102102
<key>InputMethodServerControllerClass</key>
103-
<string>SessionCtl</string>
103+
<string>IMKInputSessionController</string>
104104
<key>InputMethodServerDataSourceClass</key>
105-
<string>SessionCtl</string>
105+
<string>IMKInputSessionController</string>
106106
<key>InputMethodServerDelegateClass</key>
107-
<string>SessionCtl</string>
107+
<string>IMKInputSessionController</string>
108108
<key>InputMethodServerPreferencesWindowControllerClass</key>
109109
<string>Preferences</string>
110110
<key>InputMethodSessionController</key>
111-
<string>SessionCtl</string>
111+
<string>IMKInputSessionController</string>
112112
<key>LSApplicationCategoryType</key>
113113
<string>public.app-category.utilities</string>
114114
<key>LSHasLocalizedDisplayName</key>

0 commit comments

Comments
 (0)