• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Making an automatic vertically expanding NSTokenField?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Making an automatic vertically expanding NSTokenField?


  • Subject: Re: Making an automatic vertically expanding NSTokenField?
  • From: Jerry Krinock <email@hidden>
  • Date: Wed, 19 Dec 2012 20:34:42 -0800

On 2012 Dec 19, at 17:41, 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?

Not that I know of.

> I found this - <http://joshua.nozzi.name/source/jlnautosizingtokenfield/> - which calls -sizeToFit after the text is changed. The problem is, -sizeToFit appears to always expand the token field horizontally, and I need it to expand vertically.

That's typical of -sizeToFit.

A few years ago I discovered a "tag cloud" control posted by Robert Pointon.  Among other things, it was a re-implemenation of NSTokenField.  I grabbed it, used it in a product, and have since hacked on it quite a bit.  You might end up doing the same thing.  Maybe this will get you started…

http://github.com/jerrykrinock/RPTokenControl/

You might also get some ideas from the old IFVerticallyExpandingTextField

http://cocoadev.com/wiki/IFVerticallyExpandingTextField


_______________________________________________

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


References: 
 >Making an automatic vertically expanding NSTokenField? (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: "New" busy cursor in the Finder
  • Next by Date: Re: "New" busy cursor in the Finder
  • Previous by thread: Making an automatic vertically expanding NSTokenField?
  • Next by thread: Re: Making an automatic vertically expanding NSTokenField?
  • Index(es):
    • Date
    • Thread