Newbie TextEdit Sample Question
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.