• 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: 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

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: Customizing UIAlert keyboard behavior
  • Previous by thread: Re: Making an automatic vertically expanding NSTokenField?
  • Next by thread: "New" busy cursor in the Finder
  • Index(es):
    • Date
    • Thread