Re: Swapping the NSTextContainer on an NSTextView
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.