NSTextField as a NSToolbarItem
NSTextField as a NSToolbarItem
- Subject: NSTextField as a NSToolbarItem
- From: Tae-Won Ha <email@hidden>
- Date: Tue, 3 Sep 2002 00:27:14 +0200
Hi!
I have a NSTextField in Toolbar. It's borderless (the first one of the
3 border options in the info panel) and has no background color.
If I do this:
...
[textField setStringValue:@"pretty long text............"];
[textField sizeToFit];
[textFieldToolbarItem setMinSize:[textField frame].size];
[textFieldToolbarItem setMaxSize:[textField frame].size];
...
the text field has not been properly resized. The string @"pretty long
text..." is cut.
It's the same with a text field with a border (i.e. the 2nd option in
the info panel)
BUT if I change the border option to 3rd one, the resizing operation
works properly...
What am I doing wrong?!
I want the text field to have no border...
Please help me...
Thanks in advance.
P.S. I just started to drink Cocoa with Objective C. Thus... =)
--
Tae-Won Ha
http://www.taewon.de
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.