• 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: Robert Goldsmith <email@hidden>
  • Date: Tue, 3 Feb 2004 20:19:43 +0000

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

Actually, I started off with one NSLayoutManager, NSTextContainer and
NSTextView and just wanted to swap in and out the NSTextStorage objects
because that would minimise the number of objects hanging around but as
that failed (for actually very similar reasons and with similar
exceptions) I moved up the chain to where I am atm. I would prefer not
to have to have NSTextViews hanging around that get swapped in and out.
After all, what is the point of putting so much effort into separating
the text system up into such a structure if you need to create the
entire structure once per potentially visible text segment anyhow?! :)
And the text system objects are so big and cumbersome the less I need
to duplicate the better, to be fair :)

Robert
---
GnuPG public key:
http://www.Far-Blue.co.uk/

[demime 0.98b removed an attachment of type application/pgp-signature which had a name of PGP.sig]
_______________________________________________
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: Douglas Davidson <email@hidden>
References: 
 >Swapping the NSTextContainer on an NSTextView (From: Robert Goldsmith <email@hidden>)
 >Re: Swapping the NSTextContainer on an NSTextView (From: Douglas Davidson <email@hidden>)

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