• 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
Programmatically Determining the Rendered Size of an NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Programmatically Determining the Rendered Size of an NSTextView


  • Subject: Programmatically Determining the Rendered Size of an NSTextView
  • From: Keary Suska <email@hidden>
  • Date: Thu, 17 Jan 2013 17:50:13 -0700

I am implementing a print merge function in my application, so I essentially need to take a template in an NSTextView, interpolate values, then add it to a growing view of some kind to be later printed. I have everything working well except how to concatenate the multiple "views" into a single view. What I find is that it all boils down to needing to know the size that any given NSTextView will grow itself into given a width. Basically whatever it does when it is being printed, but via code. Of course, I could just print every document individually but this could be thousands and thousands and seems unmanageable from a usability standpoint.

Anyone have an idea how to do this? Pointers to docs/blogs/WWDC sessions welcome.

TIA,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


_______________________________________________

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

  • Prev by Date: Re: Using NSSavePanel to export to UTTypeFolder without a file extension.
  • Next by Date: Re: Changing color in NSColorPanel without message
  • Previous by thread: Re: Using NSSavePanel to export to UTTypeFolder without a file extension.
  • Next by thread: Issue with Core Data Mapping Model
  • Index(es):
    • Date
    • Thread