• 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
Newbie TextEdit Sample Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Newbie TextEdit Sample Question


  • Subject: Newbie TextEdit Sample Question
  • From: "Umed Zokirov" <email@hidden>
  • Date: Thu, 25 Apr 2002 11:12:18 -0700

Hi there

I was skimming through the code of TextEdit application and had some questions.
To start with the document window's content view is a subclass of NSScrollView and
since it is a text-editing app I was wondering how an NSScrollView can handle text-entry.
I realize that the sample is outdated and today people would normally use NSTextView and NSScrollView
or subcalsses of it. In this app the text mechanism is built by hand, i.e NSLayoutManager and NSTextStorage
objects are created by hand and so on. My question is that how NSScrollView object loads text from NSTextStorage object?
I did not see a connection.

Thanks in advance, Umed
_______________________________________________
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: Newbie TextEdit Sample Question
      • From: Andy Lee <email@hidden>
References: 
 >Simple Exception Handling, revelation (From: "Frederick C. Lee" <email@hidden>)

  • Prev by Date: Capturing video
  • Next by Date: Re: Capturing video
  • Previous by thread: Simple Exception Handling, revelation
  • Next by thread: Re: Newbie TextEdit Sample Question
  • Index(es):
    • Date
    • Thread