macOS/iOS API解説

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

目次

NSBoxクラス

INDEX>AppKit>NSBox

**

継承 NSObject
準拠 NSObject (NSObject)
フレームワーク /System/Library/Frameworks/AppKit.framework
使用可能 OS X 0.0以降
定義
インポート文 @import AppKit;

概要

オブジェクトをグループ化するボックスオブジェクトです。

f:id:jjj777:20151103174511p:plain



メソッドとプロパティ

Configuring Boxes

borderRect
boxType
setBoxType:
borderType
setBorderType:
isTransparent
Available in OS X v10.5 through OS X v10.9
setTransparent:
title
setTitle:
titleFont
setTitleFont:
titlePosition
setTitlePosition:
setTitleWithMnemonic:
(OS X v10.8)
titleCell
titleRect

Customizing

borderColor
setBorderColor:
borderWidth
setBorderWidth:
cornerRadius
setCornerRadius:
fillColor
setFillColor:

Managing Content

contentView
setContentView:
contentViewMargins
setContentViewMargins:

Sizing

setFrameFromContentFrame:
sizeToFit

Data Types

NSTitlePosition
NSBoxType

定数

参照