macOS/iOS API解説

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

目次

cancelButtonRectForBounds:

キャンセルボタンの矩形を返します
-(NSRect)cancelButtonRectForBounds:(NSRect )rect:

解説

キャンセルボタンの矩形を返します。

返り値

( NSRect )

なし

引数

( NSRect  )rect

フレームワーク

ApplicationKit

クラス

NSSearchFieldCell

Instance Methods

使用可能

10.3

参照

-searchButtonRectForBounds:
-searchTextRectForBounds:

例文

NSLog([NSString stringWithFormat:@"%.1f",[myOutlet cancelButtonRectForBounds:NSMakeRect(0,0,10,10)].origin.x ]);