幅と高さの値を NSTextField floatValue に設定すると、customView が消えて数値でのみ機能するのはなぜですか?
- (void)awakeFromNib {
NSRect f = self.frame;
f.size.width = [EnterTextWidth floatValue];
f.size.height = [EnterTextHeight floatValue];
self.frame = f;
これはうまくいきます:
- (void)awakeFromNib {
NSRect f = self.frame;
f.size.width = 640;
f.size.height = 480;
self.frame = f;