macOS/iOS API解説

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

目次

handleFailureInMethod:object:file:lineNumber:description:

INDEX>Foundation>NSAssertionHandler

セレクタを含むエラーメッセージを表示します
-(void)handleFailureInMethod:(SEL)selector:
      object:(id)object:
      file:(NSString *)fileName:
      lineNumber:(int)line:
      description:(NSString *)format,...:

解説

セレクタを含むエラーメッセージを表示します。

返り値

( void )

なし

引数

( SEL )selector

セレクタ

( id )object

オブジェクト

( NSString * )fileName

ファイル名

( int )line

行番号

( NSString * )format,...

フォーマット

クラス

NSAssertionHandler

Instance Methods

使用可能

10.0
iOS2.0

参照

例文

#import "MyObject.h"

@implementation MyObject

- (IBAction)myAction:(id)sender
{
NSAssertionHandler *aHandler = [NSAssertionHandler currentHandler];


[aHandler handleFailureInFunction:@"kansuu"
                file:@"filename"
                lineNumber: 10
                description:@"%@",@"setumei"];
               

}

@end