Re: Resizing of NSTokenField
Re: Resizing of NSTokenField
- Subject: Re: Resizing of NSTokenField
- From: Kyle Sluder <email@hidden>
- Date: Tue, 20 Jul 2010 07:45:50 -0700
On Jul 19, 2010, at 11:40 PM, Vijayakumar_Thota <email@hidden> wrote:
> Dear List,
>
> Facing an issue in resizing of NSTokenField, while adding the tokens not by typing (Adding from the search list). The tokens from the beginning of second line(End of first line) are getting clipped.
>
> While adding the tokens manually (by typing) , the NSTokenField is getting resized properly.
>
You haven't asked a question. I will assume you meant to ask how you can resize the NSTokenField to fit its contents.
NSTextField is a subclass of NSControl. NSControl has a -sizeToFit method. Try using that.
--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