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

Re: Multiple NSTextContainer


  • Subject: Re: Multiple NSTextContainer
  • From: Leonardo <email@hidden>
  • Date: Sun, 01 Jun 2014 17:12:51 +0200
  • Thread-topic: Multiple NSTextContainer

Thank you Graham,
It's exactly what I have done.

Regards
-- Leonardo


> Da: Graham Cox <email@hidden>
> Data: Sat, 31 May 2014 08:34:39 +1000
> A: Leonardo <email@hidden>
> Cc: <email@hidden>
> Oggetto: Re: Multiple NSTextContainer
>
>
> On 30 May 2014, at 7:55 pm, Leonardo <email@hidden> wrote:
>
>> Now I would like to save all of that to the disk. How
>> can I do?
>>
>> I thought to assign an ID to each textView and save the connection scheme as
>> e.g.:
>>    texViewA ID 0 connected to
>>        textViewB ID 1
>>        textViewC ID 2
>>
>> So when I reopen the document file I firstly create all the textViews A, B
>> and C, then I reconnect the 3 textViews using the same API addTextContainer:
>>
>> Or is a better archiving method?
>
>
> You don't need to save the layout arrangement to the disk (unless it changes
> in different documents), only the text.
>
> When you make the document, you create your views, containers and connect them
> together in code, as you're doing. Then you load the text into the text
> storage (belongs to the layout manager) and it will automatically flow through
> your containers as you have them. The order of the containers in the layout
> manager sets the flow order of the text.
>
> --Graham
>
>


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Prev by Date: Re: How to write a .icns file
  • Next by Date: Re: How to write a .icns file
  • Previous by thread: Re: How to write a .icns file
  • Next by thread: NSSlider value difference in two places...
  • Index(es):
    • Date
    • Thread