• 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: NSLayoutManager question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSLayoutManager question


  • Subject: Re: NSLayoutManager question
  • From: Koen van der Drift <email@hidden>
  • Date: Tue, 4 Feb 2003 10:26:34 -0500

At 4:11 PM -0600 2/3/03, Brian Webster wrote:
NSTextContainer would be better suited to doing this than NSLayoutManager. If you write your own subclass of NSTextContainer, you can use it to define what regions of a text view you want text to flow into. So, your subclass would only allow ten characters at a time to be laid out, putting a gap in between each line fragment. Take a look at the "Text System Storage Layer" programming topic in the Cocoa docs for more info on how to write an NSTextContainer subclass.


I looked all over those docs I couldn't find any info on how to change the size of the container, except for setContainerSize, but as far as I can tell, that only sets the size of the bounding rectangle. How can I make a textcontainer with gaps?


thanks,

- Koen.
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSLayoutManager question
      • From: Greg Titus <email@hidden>
References: 
 >Re: NSLayoutManager question (From: Brian Webster <email@hidden>)

  • Prev by Date: RE: NSLayoutManager question
  • Next by Date: Problem editing columns in TableView
  • Previous by thread: Re: NSLayoutManager question
  • Next by thread: Re: NSLayoutManager question
  • Index(es):
    • Date
    • Thread