macOS/iOS API解説

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

目次

tokenField:completionsForSubstring:indexOfToken:indexOfSelectedItem:

レシーバーの内容のための適切な完了の配列をデリゲートに提供します
-(NSArray *)tokenField:(NStokenField *)tokenField:
                 completionsForSubstring:(NSString *)substring:
                 indexOfToken:(int)tokenIndex:
                 indexOfSelectedItem:(int *)selectedIndex:

解説

デリゲートでの実装
レシーバーの内容のための適切な完了の配列をデリゲートに提供します。
substringはコンピレーションの部分文字
tokenIndexは編集するトークンの番号
selectedIndexは
最初に選択するコンピレーションの配列の中の番号の参照
デフォルトの挙動は何も提供しない。

返り値

( NSArray * )

なし

引数

( NStokenField * )tokenField
( NSString * )substring
( int )tokenIndex
( int * )selectedIndex

フレームワーク

ApplicationKit

クラス

NSTokenField

Instance Methods

使用可能

10.4

参照

例文