macOS/iOS API解説

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

目次

searchTextRectForBounds:

検索テキストの矩形を返します
-(NSRect)searchTextRectForBounds:(NSRect )rect:

解説

検索テキストの矩形を返します。

返り値

( NSRect )

なし

引数

( NSRect  )rect

フレームワーク

ApplicationKit

クラス

NSSearchFieldCell

Instance Methods

使用可能

10.3

参照

-cancelButtonRectForBounds:
-searchButtonRectForBounds:

例文

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