Re: Changing the height of a NSTextField for editing

2009-02-24 Thread Eric Gorr
Ah, thank you. I think I knew that bounds and frame had different uses...hopefully this time that information will stick. And, yes, it worked. On Feb 23, 2009, at 5:14 PM, Nate Weaver wrote: Try setting the frame of the field/field editor instead (doing unit conversions if necessary). When

Changing the height of a NSTextField for editing

2009-02-23 Thread Eric Gorr
Here's a sample application demonstrating the problem: http://ericgorr.net/cocoadev/label/ItemDevLabel.zip When I click in the label, I start an editing session. However, the height of the label can contain two lines of text. When the editing session begins, I would like just a single line

Re: Changing the height of a NSTextField for editing

2009-02-23 Thread Nate Weaver
Try setting the frame of the field/field editor instead (doing unit conversions if necessary). When you change the bounds of something explicitly, you end up changing the drawing transformation as well (see under setBounds: and friends). This has bitten me in the butt before (recently!).