草庐IT

applescriptLanguage

全部标签

swift - 在不设置存储属性的情况下使 Swift 初始化程序失败

我正在编写一个蓝牙控制的keynoteRemote应用程序。这将使用AppleScript基于与CoreBluetooth框架的交互来控制Keynote。考虑这个类,它需要使用可选的OSALanguage初始化器。classKeynoteController{letapplescriptLanguage:OSALanguageinit?(){ifletapplescriptLanguage=OSALanguage(forName:"AppleScript"){self.applescriptLanguage=applescriptLanguage}else{returnnil//Com