On 9 Jan 2009, at 10:07 pm, rethish wrote:
NSArray *path=[[NSFontManager alloc] availableFonts];
I take it this is merely a typo; you surely mean:
[[NSFontManager sharedFontManager] availableFonts];
Using: [textview setFont:fontobj];
Where fontobj is an object of nsfont.
But the
Hi all,
In my sample application I use a textview and popupbutton(in which all the
available fonts a shown at runtime).
For this, i use the code:
NSArray *path=[[NSFontManager alloc] availableFonts];
[popup addItemsWithTitles:path];
We can set the font in the textview
Using: