macOS/iOS API解説

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

目次

borderType

スクロールビューの枠の形状を返します

解説

スクロールビューの枠の形状を返します。
【NSBorderType】
● NSNoBorder 枠無し
● NSLineBorder 線
● NSBezelBorder 立体的な枠
● NSGrooveBorder 溝の枠

返り値

( NSBorderType )

境界タイプ

引数

フレームワーク

ApplicationKit

クラス

NSScrollView

Instance Methods

使用可能

10.0

参照

例文

#import "MyObject.h"

@implementation MyObject

- (IBAction)myAction:(id)sender
{

switch ([myOutlet borderType]){
    case NSNoBorder:
        NSLog(@"NSGrooveBorder");
        [myOutlet setBorderType:NSGrooveBorder];
        break;
    case NSLineBorder:
        NSLog(@"NSNoBorder");
        [myOutlet setBorderType:NSNoBorder];
        break;
    case NSBezelBorder:
        NSLog(@"NSLineBorder");
        [myOutlet setBorderType:NSLineBorder];
        break;
    case NSGrooveBorder:
        NSLog(@"NSBezelBorder");
        [myOutlet setBorderType:NSBezelBorder];
        break;
    default:
        NSLog(@"default");
    }
}

@end