Re: Problem with setting fonts in NSTextView

2009-01-09 Thread Graham Cox
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

Problem with setting fonts in NSTextView

2009-01-09 Thread rethish
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: