• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSTextField as a NSToolbarItem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: SOAP requests incorrectly formatted when using WebServices framework
  • Next by Date: Re: How to grab everything in a string before a space?
  • Previous by thread: SOAP requests incorrectly formatted when using WebServices framework
  • Next by thread: NSTextField as a NSToolbarItem (additional info)
  • Index(es):
    • Date
    • Thread