自分自身のファイル名を知る方法
Posted feedbacks - Objective-C
開発環境: Mac OS X 10.5.2, Xcode 3.1 (Beta)
1 2 3 4 5 6 7 8 9 10 | #import <Foundation/Foundation.h>
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
NSLog( [[[NSBundle mainBundle] executablePath] lastPathComponent] );
[pool drain];
return 0;
}
|

ところてん
#5728()
Rating1/1=1.00
see: #3301
[ reply ]