Re: Making an automatic vertically expanding NSTokenField?
Re: Making an automatic vertically expanding NSTokenField?
- Subject: Re: Making an automatic vertically expanding NSTokenField?
- From: Kyle Sluder <email@hidden>
- Date: Wed, 19 Dec 2012 21:15:08 -0800
On Dec 19, 2012, at 5:41 PM, Nick Zitzmann <email@hidden> wrote:
> I've been searching around, and have run out of options. Has anyone here ever made an NSTokenField that vertically expands & collapses as text is entered into it? If so, then how did you do that?
The typical technique for implementing a vertically-resizing text field is to call -setVerticallyResizable:YES on the field editor and resize the control in response to the field editor posting NSViewFrameDidChangeNotification.
Since it's my understanding that NSTokenField implements its own field editor subclass, you may or may not have success with this approach.
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden