Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changing truncating mode for NSWindow Title



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden


This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.