Check the archives from a couple of weeks ago:
http://www.cocoabuilder.com/archive/message/cocoa/2008/4/17/204483
-Rob
--
Rob Napier -- Software and Security Consulting -- http://robnapier.net
On Apr 22, 2008, at 1:19 AM, Stuart Malin wrote:
After poking around some more, I came up with
After poking around some more, I came up with this approach, which
seems to work
(except that I now have to deal with adjusting the text field's origin):
NSRect r = NSMakeRect(0, 0, [theTextField frame].size.width,
MAXFLOAT);
NSSize s = [[theTextField cell] cellSizeForBounds:r];