• 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
Re: Best way to implement a calculator style display/input system?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Best way to implement a calculator style display/input system? (From: Dave Camp <email@hidden>)

  • Prev by Date: Custom IB Palettes with Outlets and Actions
  • Next by Date: Re: Best way to implement a calculator style display/input system?
  • Previous by thread: Best way to implement a calculator style display/input system?
  • Next by thread: Re: Best way to implement a calculator style display/input system?
  • Index(es):
    • Date
    • Thread