macOS/iOS API解説

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

目次

imageFrameStyle

画像のまわりに現れるフレームのスタイルを返します

解説

画像のまわりに現れるフレームのスタイルを返します。
【NSImageFrameStyle】
● NSImageFrameNone フレーム無し
● NSImageFramePhoto 枠付きドロップシャドウ
● NSImageFrameGrayBezel グレイベベル
● NSImageFrameGroove
● NSImageFrameButton

返り値

( NSImageFrameStyle )

フレームスタイル

引数

フレームワーク

ApplicationKit

クラス

NSImageCell

Instance Methods

使用可能

10.0

参照

- setImageFrameStyle:

例文

#import "SetImage.h"

@implementation SetImage

- (IBAction)set:(id)sender
{
    
if ([image imageFrameStyle] == NSImageFramePhoto){
NSLog(@"NSImageFramePhoto");
}else{
NSLog(@"other");
}

}

@end