macOS/iOS API解説

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

目次

NSDrawer

setMinContentSize:

引き出しの内容の最小限のサイズを指定します -(void)setMinContentSize:(NSSize)size: 解説 引き出しの内容の最小限のサイズを指定します。 返り値 ( void ) なし 引数 ( NSSize )size サイズ フレームワーク ApplicationKit クラス NSDrawer Instance Meth…

setParentWindow:

引き出しの親ウインドウをセットします -(void)setParentWindow:(NSWindow *)parent: 解説 引き出しの親ウインドウをセットします。 親ウインドウがないと引き出しは表示されません。 nilをセットすると親ウインドウとの関係がなくなります。 返り値 ( void …

setPreferredEdge:

引き出しが飛び出る端をセットします -(void)setPreferredEdge:(NSRectEdge)preferredEdge: 解説 引き出しが飛び出る初期設定の端をセットします。 【NSRectEdge】ウインドウの端 ● NSMinXEdge 左 ● NSMinYEdge 下 ● NSMaxXEdge 右 ● NSMaxYEdge 上 返り値 (…

setTrailingOffset:

引き出しが表示される下(右)からのオフセット値をセットします -(void)setTrailingOffset:(float)offset: 解説 引き出しが表示される下(右)からのオフセット値をセットします。 返り値 ( void ) なし 引数 ( float )offset オフセット フレームワーク Applic…

state

引き出しの状態を返します

toggle:

引き出しが閉じていれば開き、開いていれば閉じます

trailingOffset

引き出しが表示される下(右)からのオフセット値を返します

drawerShouldClose:

close:で引き出しが閉じられようとした時に呼ばれます -(BOOL)drawerShouldClose:(NSDrawer *)sender: 解説 close:で引き出しが閉じられようとした時に呼ばれます。closeの場合は呼ばれません。 drawerWillClose:よりも先に呼ばれます。 YESを返すと引き出し…

drawerShouldOpen:

open:で引き出しが開けられようとした時に呼ばれます -(BOOL)drawerShouldOpen:(NSDrawer *)sender: 解説 open:引き出しが開けられようとした時に呼ばれます。openの場合は呼ばれません。 drawerWillOpen:よりも先に呼ばれます。 YESを返すと引き出しは開け…

drawerWillResizeContents:toSize:

引き出しの内容がリサイズされた時に呼ばれます -(NSSize)drawerWillResizeContents:(NSDrawer *)sender: toSize:(NSSize)contentSize: 解説 引き出しの内容がリサイズされた時に呼ばれます。 サブクラスでオーバーライドします。 返り値 ( NSSize ) サイズ …

drawerDidClose:

引き出しが閉じ終わった時に呼ばれます -(void)drawerDidClose:(NSNotification *)notification: 解説 引き出しを閉じ終わった時に呼ばれます。 返り値 ( void ) なし 引数 ( NSNotification * )notification 通知 フレームワーク ApplicationKit クラス NSD…

drawerDidOpen:

引き出しを開け終わった時に呼ばれます -(void)drawerDidOpen:(NSNotification *)notification: 解説 引き出しを開け終わった時に呼ばれます。 返り値 ( void ) なし 引数 ( NSNotification * )notification 通知 フレームワーク ApplicationKit クラス NSDr…

drawerWillClose:

引き出しを閉じようとする時に呼ばれます -(void)drawerWillClose:(NSNotification *)notification: 解説 引き出しを閉じようとする時に呼ばれます。 close:で閉じられる場合、drawerShouldClose:のあとに呼ばれます。 返り値 ( void ) なし 引数 ( NSNotifi…

drawerWillOpen:

引き出しを開けようとする時に呼ばれます -(void)drawerWillOpen:(NSNotification *)notification: 解説 引き出しを開けようとする時に呼ばれます。 open:で開けようとする場合、drawerShouldOpen:の後に呼ばれます。 返り値 ( void ) なし 引数 ( NSNotific…

setMaxContentSize:

引き出しの内容の最大のサイズをセットします -(void)setMaxContentSize:(NSSize)size: 解説 引き出しの内容の最大のサイズをセットします。 返り値 ( void ) なし 引数 ( NSSize )size サイズ フレームワーク ApplicationKit クラス NSDrawer Instance Meth…

drawerWillOpen:

ダブり drawerWillOpen: へ移動 引き出しを開けようとする時に呼ばれます -(void)drawerWillOpen:(NSNotification *)notification: 解説 引き出しを開けようとする時に呼ばれます。 open:で開けようとする場合、drawerShouldOpen:の後に呼ばれます。 返り値 …

drawerWillClose:

ダブり drawerWillClose: へ移動 引き出しを閉じようとする時に呼ばれます -(void)drawerWillClose:(NSNotification *)notification: 解説 引き出しを閉じようとする時に呼ばれます。 close:で閉じられる場合、drawerShouldClose:のあとに呼ばれます。 返り…

drawerDidOpen:

ダブり drawerDidOpen: へ移動 引き出しを開け終わった時に呼ばれます -(void)drawerDidOpen:(NSNotification *)notification: 解説 引き出しを開け終わった時に呼ばれます。 返り値 ( void ) なし 引数 ( NSNotification * )notification 通知 フレームワー…

drawerDidClose:

ダブり drawerDidClose: へ移動 引き出しが閉じ終わった時に呼ばれます -(void)drawerDidClose:(NSNotification *)notification: 解説 引き出しを閉じ終わった時に呼ばれます。 返り値 ( void ) なし 引数 ( NSNotification * )notification 通知 フレームワ…

drawerWillResizeContents:toSize:

引き出しの内容がリサイズされた時に呼ばれます -(NSSize)drawerWillResizeContents:(NSDrawer *)sender: toSize:(NSSize)contentSize: 解説 引き出しの内容がリサイズされた時に呼ばれます。 サブクラスでオーバーライドします。 返り値 ( NSSize ) サイズ …

drawerShouldOpen:

ダブり drawerShouldOpen: open:で引き出しが開けられようとした時に呼ばれます -(BOOL)drawerShouldOpen:(NSDrawer *)sender: 解説 open:引き出しが開けられようとした時に呼ばれます。openの場合は呼ばれません。 drawerWillOpen:よりも先に呼ばれます。 Y…

drawerShouldClose:

ダブり drawerShouldClose: へ移動 close:で引き出しが閉じられようとした時に呼ばれます -(BOOL)drawerShouldClose:(NSDrawer *)sender: 解説 close:で引き出しが閉じられようとした時に呼ばれます。closeの場合は呼ばれません。 drawerWillClose:よりも先…

trailingOffset

引き出しが表示される下(右)からのオフセット値を返します 解説 引き出しが表示される下(右)からのオフセット値を返します。 返り値 ( float ) 長さ 引数 フレームワーク ApplicationKit クラス NSDrawer Instance Methods 使用可能 10.0 参照 - setTrailing…

toggle:

ダブり toggle: へ移動 引き出しが閉じていれば開き、開いていれば閉じます -(void)toggle:(id)sender: 解説 引き出しが閉じていれば開き、開いていれば閉じます。 返り値 ( void ) なし 引数 ( id )sender 送信オブジェクト フレームワーク ApplicationKit …

state

ダブりstateへ移動 引き出しの状態を返します 解説 引き出しの状態を返します。 【NSDrawerState】引き出しの状態 ● NSDrawerClosedState 閉じている途中 ● NSDrawerOpeningState 開き終わった ● NSDrawerOpenState 開いている途中 ● NSDrawerClosingState …

setTrailingOffset:

ダブり setTrailingOffset: へ移動 引き出しが表示される下(右)からのオフセット値をセットします -(void)setTrailingOffset:(float)offset: 解説 引き出しが表示される下(右)からのオフセット値をセットします。 返り値 ( void ) なし 引数 ( float )offset…

setPreferredEdge:

ダブりsetPreferredEdge: へ移動 引き出しが飛び出る端をセットします -(void)setPreferredEdge:(NSRectEdge)preferredEdge: 解説 引き出しが飛び出る初期設定の端をセットします。 【NSRectEdge】ウインドウの端 ● NSMinXEdge 左 ● NSMinYEdge 下 ● NSMaxXE…

setParentWindow:

引き出しの親ウインドウをセットします ダブリsetParentWindow: - Cocoa API解説(iOS/OS X) setParentWindow: - Cocoa API解説(iOS/OS X) -(void)setParentWindow:(NSWindow *)parent: 解説 引き出しの親ウインドウをセットします。 親ウインドウがないと引…

setMinContentSize:

ダブり setMinContentSize: へ移動 引き出しの内容の最小限のサイズを指定します -(void)setMinContentSize:(NSSize)size: 解説 引き出しの内容の最小限のサイズを指定します。 返り値 ( void ) なし 引数 ( NSSize )size サイズ フレームワーク Application…

setMaxContentSize:

ダブり setMaxContentSize: へ移動 引き出しの内容の最大のサイズをセットします -(void)setMaxContentSize:(NSSize)size: 解説 引き出しの内容の最大のサイズをセットします。 返り値 ( void ) なし 引数 ( NSSize )size サイズ フレームワーク Application…