setBadgeLabel:
バッジラベル文字列をセットします
-(void)setBadgeLabel:(NSString *)string:
解説
バッジラベル文字列をセットします
返り値
( void )
引数
( NSString * )string
フレームワーク
ApplicationKit
クラス
NSDockTile
Instance Methods
使用可能
10.5
参照
例文
#import "Controller.h" @implementation Controller - (IBAction)pushButton:(id)sender { #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5 NSDockTile * tile = [NSApp dockTile]; [tile setBadgeLabel:@"999"]; NSLog(@"badgeLabel %@",[tile badgeLabel]); #endif } @end