Added some support code for our changes to tSpinbox to make it have only one view. Unfortunately, this is how we're going to need to do stretchiness with tSpinbox.

This commit is contained in:
Pietro Gagliardi 2015-08-02 00:10:30 -04:00
parent 08c3602130
commit aca81945e8
1 changed files with 13 additions and 0 deletions

View File

@ -1,6 +1,19 @@
// 31 july 2015
#import "osxaltest.h"
// leave a whole lot of space around the alignment rect, just to be safe
@interface tSpinboxContainer : NSView
@end
@implementation tSpinboxContainer
- (NSEdgeInsets)alignmentRectInsets
{
return NSEdgeInsetsMake(50, 50, 50, 50);
}
@end
@implementation tSpinbox {
NSTextField *t;
NSStepper *s;