• 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
NSTextAttachment dynamic resize?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSTextAttachment dynamic resize?
      • From: Douglas Davidson <email@hidden>
    • Re: NSTextAttachment dynamic resize?
      • From: email@hidden (Stefan Haller)
  • Prev by Date: Re: IB 3 z-order problem
  • Next by Date: Notification for Idle Time?
  • Previous by thread: Animating NSTabViewItem content change - how hard can it be?
  • Next by thread: Re: NSTextAttachment dynamic resize?
  • Index(es):
    • Date
    • Thread