Re: Best way to implement a calculator style display/input system?
Re: Best way to implement a calculator style display/input system?
- Subject: Re: Best way to implement a calculator style display/input system?
- From: Douglas Davidson <email@hidden>
- Date: Wed, 23 Jun 2004 18:15:58 -0700
On Jun 23, 2004, at 5:53 PM, Dave Camp wrote:
However, I thought a cleaner design might be possible with an
NSTextView if there was an easy way to make it not display the focus
ring and insertion point, and have it always be the first responder.
It seems like it would be preferable to allow the text system to
perform all the key event processing for me.
An NSTextView does not ordinarily display a focus ring. The blinking
insertion caret can be suppressed by overriding
shouldDrawInsertionPoint or drawInsertionPointInRect:color:turnedOn: in
a subclass. However, there are probably other things you would need to
do in order to make NSTextView fit your needs--for example, in a
calculator one usually cannot click on and edit individual numbers in
the display.
Douglas Davidson
_______________________________________________
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.