• 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
Changing truncating mode for NSWindow Title
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changing truncating mode for NSWindow Title


  • Subject: Changing truncating mode for NSWindow Title
  • From: Joachim Deelen <email@hidden>
  • Date: Sun, 26 Feb 2006 15:53:39 +0100

Hello,

is it possible, to change the truncating mode for Window Titles?

If you resize a window, so that the title can not be completely displayed, ellipsis (...) are drawn at the end of the title string automatically.

I want these ellipsis to be in the middle!

I've tried to create an NSAttributedString with a NSParagraphStyle with line Breaking Mode "NSLineBreakByTruncatingMiddle". But when I use the NSWindow setTitle, with the attributed String, it does not accept it as a valid parameter value.

Any ideas?

regards
Joachim _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Need Help Please....Truncation Mode for Window Title
      • From: Joachim Deelen <email@hidden>
  • Prev by Date: Re: How does a binding know what it gets should be treated like an NSArray or not ? (Was: How to observe and bind (KVO/KVB) to a value generated at runtime..)
  • Next by Date: Re: Accessing MySQL database
  • Previous by thread: Re: Objective-C in a Time Constraint Thread
  • Next by thread: Need Help Please....Truncation Mode for Window Title
  • Index(es):
    • Date
    • Thread