• 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
Re: NSTextView pagination
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView pagination


  • Subject: Re: NSTextView pagination
  • From: Graham Cox <email@hidden>
  • Date: Fri, 08 Jul 2016 13:37:27 +1000

> On 8 Jul 2016, at 2:42 AM, Jonathan Mitchell <email@hidden> wrote:
>
> could supply a new view that would correspond to the new page orientation (if I could get an appropriate	 notification) but NSPrintOperation’s -view is readonly.


Do it this way. The textview can share the same NSTextStorage as the GUI view.

When you create the NSPrintOperation, you pass it the view to use, so you can create the new view then, set its text storage and away it goes. It’s usually much easier to set up a separate printing view than trying to make a single view adapt itself to deal with both situations.

—Graham



_______________________________________________

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


References: 
 >NSTextView pagination (From: Jonathan Mitchell <email@hidden>)

  • Prev by Date: Encoding of Swift string literals?
  • Next by Date: Re: Encoding of Swift string literals?
  • Previous by thread: NSTextView pagination
  • Next by thread: WKWebView frame resizing doesn't animate WebGL frame resize
  • Index(es):
    • Date
    • Thread