macOS/iOS API解説

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

目次

executablePath

バンドルの実行ファイルのフルパス名を返します

解説

バンドルの実行ファイルのフルパス名を返します。

返り値

( NSString * )

フルパス

引数

クラス

NSBundle

Instance Methods

使用可能

10.0
iOS2.0

参照

例文

#import "SetImage.h"

@implementation SetImage

- (IBAction)set:(id)sender
{
//
    NSString *string;

        string = [[NSBundle mainBundle]  executablePath];


    if (string!=nil){
 [str setStringValue:string];
    }else{
     [str setStringValue:@"Nil"];
       
    }
}

@end