Mailing Lists: Apple Mailing Lists

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

Finder like wrapping + truncation



Hi,

I'm needing a hand with this. I'm trying to emulate the wrapping and truncation for icon labels in Finder's icon view.

My first question is: is there any method around for making a string to line wrap, and to truncate the second line if it is too long (like on the right hand image in the screenshot). Is this supported in an API?

The second questions is: can the NSAttributedString render the background for the text like the ones on the screenshots or is it something I have to draw myself?

here's the screenshot:
http://www.binarynights.com/images/Screenshot.png
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

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.