メニュー選択をキーボード操作でも可能に
デスクトップメニュー -> appearance... -> preferences -> menus -> menuKeyboardControl をオン。または、
Preferences enableGently: #menuKeyboardControl
メニュー項目のアイコンを非表示
デスクトップメニュー -> appearance... -> preferences -> menus -> menuWithIcons をオフ。または、
Preferences disableGently: #menuWithIcons
メニューは英語のままで、キー入力やコピペは日本語を扱えるように
デスクトップメニュー -> ヘルプ… -> 言語を設定… -> English のあとに、
Locale currentPlatform: (Locale isoLanguage: 'ja') またはいきなり、
Locale switchTo: (Locale isoLanguage: 'en'); currentPlatform: (Locale isoLanguage: 'ja')
.txt を付けた日本語ファイルの場合に限り、ファイル・リストでの文字化けを回避
!FileList methodsFor: 'private' stamp: 'sumim 3/30/2005 18:00'! defaultEncoderFor: aFileName "This method just illustrates the stupidest possible implementation of encoder selection." | ll | ll _ aFileName asLowercase. " ((ll endsWith: FileStream multiCs) or: [ll endsWith: FileStream multiSt]) ifTrue: [^ UTF8TextConverter new]. " ((ll endsWith: FileStream cs) or: [ll endsWith: FileStream st]) ifTrue: [^ MacRomanTextConverter new]. (ll endsWith: 'txt') ifTrue: [^ UTF8TextConverter new]. ^ Latin1TextConverter new! !
ワークスペースでアクセプト (alt-/cmd- s) &キャンセル (同 l) を正常に機能させる
!StringHolder methodsFor: 'accessing' stamp: 'sumim 3/30/2005 18:12'! contents: textOrString "Set textOrString to be the contents of the receiver." contents _ textOrString "asString" copy! !