removeCollection:
コレクションを削除します
-(BOOL)removeCollection:(NSString *)collectionName:
解説
コレクションを削除します。
返り値
( BOOL )
YES/NO
引数
( NSString * )collectionName
フレームワーク
ApplicationKit
クラス
NSFontManager
Instance Methods
使用可能
10.3
参照
例文
#import "Controller.h" @implementation Controller - (IBAction)pushButton:(id)sender { NSFontManager *fMgr = [NSFontManager sharedFontManager]; [fMgr addCollection:@"collectionName" options: NSFontCollectionApplicationOnlyMask]; ([fMgr removeCollection:@"collectionName"]) ? NSLog(@"YES") : NSLog(@"NO") ; } @end