• 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: Column & Page breaks in multible NSTextViews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Column & Page breaks in multible NSTextViews


  • Subject: Re: Column & Page breaks in multible NSTextViews
  • From: Douglas Davidson <email@hidden>
  • Date: Mon, 5 Jan 2004 10:42:20 -0800

On Jan 2, 2004, at 10:38 PM, Steve Sheets wrote:

Is there a way to support page & colum breaks when using multible NSTextViews?

My application can put up to 3 views on page, variable number of pages. The text flows from one NSTextView to another. Some of our customers have been requesting groups of data (basically paragraphs) not be broken up over page or column borders. Is there a simple way to provide this (I search NSText documentation without any luck). If not, is there a more complex way? I just paste the text into the view, so normally do not even keep track of which TextView I am in.

A form feed character (NSFormFeedCharacter = 0xc) will act as a container break--text after it will move to the next container, the text system not knowing whether the container acts as a column or a page. With some additional work you should be able to use this to get what you want, but the details depend on exactly what you are doing--e.g. whether your text is editable directly, how you create your views, etc.

Douglas Davidson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Column & Page breaks in multible NSTextViews (From: Steve Sheets <email@hidden>)

  • Prev by Date: Re: Advanced text-layout questions
  • Next by Date: XCode and CVS
  • Previous by thread: Column & Page breaks in multible NSTextViews
  • Next by thread: Problems with Distributed Objects [update]
  • Index(es):
    • Date
    • Thread