• 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: how do you enter text in Symbol?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how do you enter text in Symbol?


  • Subject: Re: how do you enter text in Symbol?
  • From: Ondra Cada <email@hidden>
  • Date: Wed, 15 May 2002 16:29:03 +0200

On Wednesday, May 15, 2002, at 02:19 , Simson Garfinkel wrote:

I have an NSTextView and a user who wishes to be able to enter information
using the Symbol font. When the Symbol font is selected with the font panel,
and the user starts typing, the font reverts back to a roman font.

Has anybody solved this problem?

There's no problem at all.

The Symbol font is automatically used for appropriate characters, just like roman (or Hebrew, or Cyrillic) one. IIRC, it was the same way in NeXTStep from 4.0 up (in other words, since Unicode is here).

The thing is that the keyboard input and font selected have *NOTHING* common. Keyboard is used to enter characters -- like 'a', 'R', or 'b' (that's suma), or 'B)' (that's (c), in case maillist mangles it). The appropriate font is then selected automatically.

So, what you need is to re-map keyboard somehow to enter Symbol characters.
Of course, the easies way would be just to switch programmatically to the Symbol keyboard whenever the view gets focus; alas, the NeXTStep keyboard switching services are not there anymore.

Therefore, as a next best workaround I know of I would recommend Input Management. Also you could just catch key events (and, say, add '(c)' to textview if 'c' was actually pressed), but Input Management is IMHO cleaner and more flexible.

Incidentally, any news at O'Reilly?
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
2K Development: email@hidden http://www.2kdevelopment.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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.

  • Follow-Ups:
    • Re: how do you enter text in Symbol?
      • From: Ali Ozer <email@hidden>
    • In Praise of the new O'Reilly Cocoa book
      • From: "Michael P. Rogers" <email@hidden>
References: 
 >how do you enter text in Symbol? (From: "Simson Garfinkel" <email@hidden>)

  • Prev by Date: NSToolbar Problems...
  • Next by Date: Re: Is there a tutorial/sample for displaying...
  • Previous by thread: Re: how do you enter text in Symbol?
  • Next by thread: In Praise of the new O'Reilly Cocoa book
  • Index(es):
    • Date
    • Thread