Lightweight view & NSTextInput
Lightweight view & NSTextInput
- Subject: Lightweight view & NSTextInput
- From: Tilo Broszies <email@hidden>
- Date: Wed, 18 Jan 2006 16:10:01 +0100
For a small document-based layout application I need to do create a
text box very similar to those used e.g. in Apple's Pages.
That is a box, that can be moved and scaled by the user and got full
text support.
Subclassing NSTextView seemed to be obvious. But for performance
issues, even Apple themselves suggest not to use NSView extensively.
My next idea then was to create some kind of "lightweight view" that
is not a subclass of NSView, but of NSResponder and which also
implements the full NSTextInput protocol.
My question is, does it make sense (or is it possible at all) to
write a class that is basically just drawing information with some
accessors for resizing etc, that at the same time efficiently handles
text input and related functions? Has anyone done something similar
and give me some hints where to start?
Thanks in advance
-Tilo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden