最終更新:2012-09-24 (月) 23:19:22 (4203d)
NSTextField
Top / NSTextField
値の取得
NSTextField* textField; textField.stringValue;//ドット記法 [textField stringValue];//メッセージ
メソッド
-(NSString *)stringValue //値の取得 -(void)setStringValue:(NSString *) aString
NSFormatter?を使って表示
-(NSObject *)objectValue -(void)setObjectValue:(NSObject *) anObject
Xcode/Attributes Inspector
Text Fileld Cell
- Title
- Placeholder
- Alignment
- Border
- Display - Draw Background
- Text Color
- Background
- Font
- Layout
- Use Single Line Mode
- Action (IBAction)
- Send On Enter Only
- Send On End Editing (Default)
- Behavior
- Selectable
- Editable (Default)
- Allows
- Rich Text
- Undo (Default)
- Only Roman Characters
Cell
- LIne Break
- Clip (Default)
- Character Wrap
- Word Wrap
- Truncate Head
- Truncate Middle
- Truncate Tail
- Truncates Last Visible Line
- State
- Enabled (Default)
- Continuous
- Refuses First Responder
- Tag
- Text Direction
- Layout