Hello,
I'm new to Cocoa programming and just bought a book to learn some Cocoa (Cocoa Programming by The Pragmatic Programmers).
I'm trying to build a simple webbrowser (the first exercise in the book) and added a toolbar and a web view to my window. So far, so good.
Now I added an NSTextField to my toolbar and want it to automatically resize when I change the size of the main window.
So I set the maximum width to 2000:
And the autosize options to anchor left, top and right and to resize horizontally:
But when I click done, the maximum size of the NSTextField (which I set to 2000) goes back to the original size of the text field!
Any ideas? I hope I explained it clearly enough, please do ask if something is vague..
Thanks in advance!
I'm new to Cocoa programming and just bought a book to learn some Cocoa (Cocoa Programming by The Pragmatic Programmers).
I'm trying to build a simple webbrowser (the first exercise in the book) and added a toolbar and a web view to my window. So far, so good.
Now I added an NSTextField to my toolbar and want it to automatically resize when I change the size of the main window.
So I set the maximum width to 2000:

And the autosize options to anchor left, top and right and to resize horizontally:

But when I click done, the maximum size of the NSTextField (which I set to 2000) goes back to the original size of the text field!
Any ideas? I hope I explained it clearly enough, please do ask if something is vague..
Thanks in advance!