Auto-resizing NSTextField

  • Hello:

    I'm trying to subclass an NSTextField, so when the data is loaded
    into it, the field resizes (vertically) so all of the data loads

    I've found this bit of code and have been using it as an example:

    I implemented my own version of this code, and when I try to tell the
    NSTextField to resize, it gets to the method, but it doesn't react.

    What I'm also finding, is that it isn't even setting the string any

    So, this line used to work when the text field was a standard

    [myTextField setStringValue: myString];

    Now, after I subclassed the text field, it does not even seem to
    respond at all.  Doesn't set the text, doesn't resize.  Any tips on
    what I'm missing or doing wrong?


previous month october 2007 next month
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        
Go to today