• 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: Swapping the NSTextContainer on an NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Swapping the NSTextContainer on an NSTextView


  • Subject: Re: Swapping the NSTextContainer on an NSTextView
  • From: Douglas Davidson <email@hidden>
  • Date: Tue, 3 Feb 2004 12:11:35 -0800

On Feb 3, 2004, at 11:15 AM, Robert Goldsmith wrote:

I remember there being a discussion about swapping out NSTextContainers
with an NSTextView to show multiple text contents - like projectBuilder
does - but can't find any agreed upon method in the archives. Before I
went hunting in the archives I trawled through Apple's info on the text
system and, following their info, am building my own text system
structure starting with an NSTextStorage, adding an NSLayoutManager and
an NSTextContainer. Then I have problems. When I either
setTextContainer or replaceTextContainer for the NSTextView or call
setTextView on the NSTextContainer to swap the view contents, all works
fine except for:

Offhand I don't recall any such example. Ordinarily there is a fairly close binding between containers and their views--they appear in one-to-one correspondence, they affect each other's sizing, and they are not normally swapped after the initial setup. I would suggest having each container hold on to its own text view, and swapping these text views in and out of the window instead.

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.

  • Follow-Ups:
    • Re: Swapping the NSTextContainer on an NSTextView
      • From: Robert Goldsmith <email@hidden>
References: 
 >Swapping the NSTextContainer on an NSTextView (From: Robert Goldsmith <email@hidden>)

  • Prev by Date: Newbie thread question
  • Next by Date: Re: Cocoa/Windows parallel dvlpmt
  • Previous by thread: Swapping the NSTextContainer on an NSTextView
  • Next by thread: Re: Swapping the NSTextContainer on an NSTextView
  • Index(es):
    • Date
    • Thread