NSTextAttachment dynamic resize?
NSTextAttachment dynamic resize?
- Subject: NSTextAttachment dynamic resize?
- From: Rachel Blackman <email@hidden>
- Date: Mon, 10 Dec 2007 11:39:49 -0800
Has anyone out there tackled the annoying task of having an
NSTextAttachment which resizes with the NSTextView containing it, who
wishes to share their hard-earned wisdom? (Specifically, I am looking
at the case of having an attachment which is exactly the visible width
of the NSTextView, regardless of what size the textview may currently
be. This must apply to only one specific type of attachment; others
remain with their current behaviors.)
I imagine there is a way to do this by subclassing out NSLayoutManager
and iterating through any attachments of a specific subclass
('MyResizingTextAttachmentCell' or something), but I would prefer not
to have to subclass the layout manager and iterate through this way if
I can avoid it. If I must, I must, but the iterate-and-resize seems
an inefficient method at best.
--
Rachel 'Sparks' Blackman -- sysadmin, developer, mad scientist
"If it is not broken, give me five minutes to redesign it!"
_______________________________________________
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:
This email sent to email@hidden