macOS/iOS API解説

iOS , Mac アプリケーション開発のために使われる主要フレームワークの日本語情報です。2010年代に書かれた内容です。今後更新はありません。

目次

setAutosavesConfiguration:

ツールバーの設定を自動保存するかをセットします
-(void)setAutosavesConfiguration:(BOOL)flag:

解説

ツールバーの設定を自動保存するかをセットします。
YESをセットすると、ユーザーデフォルトに自動保存します。

返り値

( void )

なし

引数

( BOOL )flag

YES/NO

フレームワーク

ApplicationKit

クラス

NSToolBar

Instance Methods

使用可能

10.1

参照

- allowsUserCustomization
- autosavesConfiguration

例文

-(void)myToolBar:(id)sender
{
[[sender toolbar] setAutosavesConfiguration:YES];
}