2010-04-20 119 views

回答

2

在10.5和更早的版本,這裏的路徑,它所以只是啓動它像正常:

/System/Library/Components/KeyboardViewer.component/Contents/SharedSupport/KeyboardViewerServer.app 

在10.6及更高版本不起作用。你需要這個:http://github.com/nriley/keyboardViewer

+0

嗨,而不是通過給路徑調用,我發現這一個。只需調用nsworkspace的應用程序名稱或包標識符的應用程序方法即可。 [[NSWorkspace sharedWorkspace] launchAppWithBundleIdentifier:@ 「com.apple.KeyboardViewerServer」 \t \t \t \t \t \t \t \t \t \t \t選項:NSWorkspaceLaunchAsync \t \t \t \t \t \t \t \t additionalEventParamDescriptor:無\t \t \t \t \t \t \t \t \t \t \t \t launchIdentifier:nil]; – boom 2010-04-21 06:25:21