• 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: Vertically-expanding NSTextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Vertically-expanding NSTextField


  • Subject: Re: Vertically-expanding NSTextField
  • From: "Justin R. Miller" <email@hidden>
  • Date: Thu, 11 May 2006 14:14:54 -0400

On May 11, 2006, at 1:54 PM, Greg Titus wrote:

The other (probably more efficient) way to do this would be to get your window's field editor (which is the NSTextView which actually handles the editing while you are doing it), and register for the field editor's frame-did-change notifications. Those will occur only when the editing area grows or shrinks, so you'd be handling fewer actions and wouldn't need to do the size comparisons between cell and field yourself.

Ah, interesting. I poked and prodded the field editor but didn't see these notifications; that does indeed sound more elegant. Thanks.


--
Justin R. Miller
Code Sorcery Workshop
http://codesorcery.net


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Vertically-expanding NSTextField (From: Andrew Bowman <email@hidden>)
 >Re: Vertically-expanding NSTextField (From: Uli Kusterer <email@hidden>)
 >Re: Vertically-expanding NSTextField (From: Andrew Bowman <email@hidden>)
 >Re: Vertically-expanding NSTextField (From: "Justin R. Miller" <email@hidden>)
 >Re: Vertically-expanding NSTextField (From: Greg Titus <email@hidden>)

  • Prev by Date: Re: NSRunLoop performSelector question
  • Next by Date: Re: NSDrawer in System Pref Pane
  • Previous by thread: Re: Vertically-expanding NSTextField
  • Next by thread: Re: Vertically-expanding NSTextField
  • Index(es):
    • Date
    • Thread