CocoaDev

Edit AllPages

This is a slightly modified version of CCDGrowingTextField that supports auto resizing text fields. It also doesn’t reset the width of an empty text field to the default width until the user stops editing. –SaileshAgrawal

@interface CCDGrowingTextField : NSTextField { float defaultLeftMargin; float defaultRightMargin; NSRect defaultFrame; }

@end

@interface CCDGrowingTextField(Private)

@end

@implementation CCDGrowingTextField

@end // CCDGrowingTextField

@implementation CCDGrowingTextField(Private)

@end // CCDGrowingTextField(Private)