• 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
keeping tooltips from wrapping
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

keeping tooltips from wrapping


  • Subject: keeping tooltips from wrapping
  • From: Mark Munz <email@hidden>
  • Date: Sun, 16 May 2004 07:34:58 -0600

Does anyone know how to keep the text in the tooltip from wrapping when I set it programmatically? I need to be able to control the wrapping.

I noticed that if I set a long tooltip in IB, the tooltip doesn't wrap early (using the same strings as I did below).

However, if I set it programmatically with something like:

NSString* myString = @"You can use the following optional sequences in this field if you desire.\rYou can use the following optional sequences in this field if you desire.\r";

[myButton setToolTip: myString];

the tooltip wraps early.

Thanks.

Mark Munz
_______________________________________________
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.


  • Follow-Ups:
    • Subclassing appendFormat: for NSMutableString?
      • From: "Dr. H. Nikolaus Schaller" <email@hidden>
  • Prev by Date: Re: Yahoo!
  • Next by Date: Re: Detect ALT key pressed during dragging
  • Previous by thread: Re: Yahoo!
  • Next by thread: Subclassing appendFormat: for NSMutableString?
  • Index(es):
    • Date
    • Thread