Re: how do you enter text in Symbol?
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.