How to use NSTextAttachments and get word wrap around images?
How to use NSTextAttachments and get word wrap around images?
- Subject: How to use NSTextAttachments and get word wrap around images?
- From: "The Karl Adam" <email@hidden>
- Date: Tue, 30 May 2006 18:32:18 -0700
I'm trying to set up an attributed string such that I or a user can
insert an image and the text will wrap around that image. More
sophisticated text layout programs like Pages allow the user to do
this. So does the Cocoa Text System have native support for this or do
I have to construct a custom text container that tracks the attachment
cells to specially edit the proposedRects around the image? It's
possible that this could also be done by using several different text
containers to flow the text around the areas that images are in, but
then I'm unsure as to where the image attachment cells are actually
inserted such that they seem to be connected to a paragraph of text
rather than in a sentence itself.
-Karl
_______________________________________________
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