• 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
Lightweight view & NSTextInput
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: NumberFormatters and sci notation
  • Next by Date: Re: NumberFormatters and sci notation
  • Previous by thread: Re: NumberFormatters and sci notation
  • Next by thread: Re: Lightweight view & NSTextInput
  • Index(es):
    • Date
    • Thread