How to reproduce text insertion style when drawing text using Mac OS X Cocoa?

I'm talking about the text groove style on the focal headers or safari bookmark bar, for example. Is there an easy way to reproduce this style when using:

[string drawAtPoint:... withAttributes:...];
+5
source share
2 answers

If you want it to look perfect, you need to draw the text twice.

, , , Safari (Control + , + +\ ), , , " :" " " , Mac Apple .

NSShadow , , NSShadowAttributeName , , , - MIA . - , NSShadow, , NSShadow, - , -, .

:

  • ,
  • , .

, , , Cocoa Safari .

EDIT: , Safari "" , , , , "" ; : , , . , , .

+7

. , 50% , 0, 1 .

- . 1 pt , , 50%. (, 100%) .

+3

All Articles