Re: NSTextView pagination

2016-07-07 Thread Graham Cox
> On 8 Jul 2016, at 2:42 AM, Jonathan Mitchell 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

NSTextView pagination

2016-07-07 Thread Jonathan Mitchell
Is there a recommended way to change the content of an NSTextView subclass during an NSPrintOperation preview? My subclass needs to adjust its content depending on the NSPrintInfo page orientation. Drawing into the margin with NSView -drawPageBorderWithSize: is not an appropriate solution in