Add usesSingleLineMode in inspector

This commit is contained in:
Gregory John Casamento 2019-04-14 00:26:47 -04:00
parent d9e8d3be80
commit 5a35e51db1
5 changed files with 9 additions and 2 deletions

View file

@ -13,7 +13,8 @@
editableSwitch,
scrollableSwitch,
selectableSwitch,
sendActionMatrix
sendActionMatrix,
singleLineMode
);
Super = IBInspector;
};

View file

@ -53,6 +53,7 @@
NSButton *editableSwitch;
NSButton *selectableSwitch;
NSButton *scrollableSwitch;
NSButton *singleLineMode;
NSForm *tagForm;
NSMatrix *sendActionMatrix;
}

View file

@ -136,6 +136,10 @@
BOOL sendActionOnEndEditing = ([[sender cellAtRow: 1 column: 0] state] == NSOnState);
[[object cell] setSendsActionOnEndEditing: sendActionOnEndEditing];
}
else if (sender == singleLineMode)
{
[[object cell] setUsesSingleLineMode: [scrollableSwitch state]];
}
[super ok:sender];
}
@ -155,7 +159,8 @@
[editableSwitch setState:[object isEditable]];
[selectableSwitch setState:[object isSelectable]];
[scrollableSwitch setState:[[object cell] isScrollable]];
[singleLineMode setStat:[[object cell] usesSingleLineMode]];
if ([object isBordered] == YES)
{
[borderMatrix selectCellAtRow: 0 column: 1];