Re: Properly wrapping non-contiguous NSTextViews
Re: Properly wrapping non-contiguous NSTextViews
- Subject: Re: Properly wrapping non-contiguous NSTextViews
- From: Nick Zitzmann <email@hidden>
- Date: Tue, 16 Aug 2011 13:23:53 -0600
On Aug 16, 2011, at 12:00 PM, Kyle Sluder wrote:
> On Tue, Aug 16, 2011 at 9:59 AM, Nick Zitzmann <email@hidden> wrote:
>> But how? I can't use a single NSTextView because this is for a view where each text view corresponds to a single page of text, and so AFAICT text containers and views must be created manually as the layout manager lays out text.
>
> Have you looked at TextEdit? It does pagination using multiple
> NSTextViews. See -[DocumentWindowController addPage] and friends.
I did take a look now that you mentioned it, and TextEdit has the exact same problem as my application - if you open a document in page view and change the margins in the page setup from the default value, it is possible to cut off text at the bottom of each page.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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