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
attributed strings surrounding rect
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
attributed strings surrounding rect
Subject
:
attributed strings surrounding rect
From: Julien Palmas <
email@hidden
>
Date: Fri, 17 Jun 2005 13:44:09 +0900
I have been looking at the LayoutManagerDemo sample code from this page :
http://developer.apple.com/samplecode/LayoutManagerDemo/
LayoutManagerDemo.html
It is pretty easy to display a background color for an attributed string using this attribute : NSBackgroundColorAttributeName.
But what if I want to display only the rectangle containing a word for example ? No color behind the word, just a rect ... I am able to do so by overriding the - drawRect method of my view, but it requires a bit of calculation and will definitely be harder if I want to draw this rect from one character on a line to another charachter on another line ...
I didn't find the attribute to do so in NSAttributedString, but maybe I missed something easy.
_______________________________________________
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
Prev by Date:
Re: Obfuscating .mom files
Next by Date:
Re: [RESOLVED] drag-n-drop
Previous by thread:
Re: Core Data: "Failed To Create New Object"
Next by thread:
Unique attribute in an entity (Core Data)
Index(es):
Date
Thread