Re: Bold and Italic For Dictionary Font Attributes (Hillegass Chapter 20, Challenge 2)

2009-10-31 Thread Russell Finn
On Wed, Oct 28, 2009 at 8:27 PM, Graham Cox wrote: > > On 29/10/2009, at 7:02 AM, Russell Finn wrote: > >> I'm pretty sure you got this backwards -- it's ObjectsAndKeys, not >> KeysAndObjects: >> >> attributes = [[NSMutableDictionary alloc] initWithO

Re: Bold and Italic For Dictionary Font Attributes (Hillegass Chapter 20, Challenge 2)

2009-10-28 Thread Russell Finn
On Tue, Oct 27, 2009 at 3:39 PM, Jens Alfke wrote: > > On Oct 27, 2009, at 4:59 AM, Chunk 1978 wrote: > >> attributes = [[NSMutableDictionary alloc] init]; >> >> [attributes setObject:[NSFont fontWithName:@"Helvetica" size:75] forKey: >> NSFontAttributeName]; >> >> [attributes setObject:[NSColor r

NSTextView not always accepting a Favorite style from NSFontPanel

2008-09-19 Thread Russell Finn
I am struggling with a puzzling problem involving an NSTextView and the Favorites list in the NSFontPanel. I'm hoping someone on the list has seen something like this before and/or can offer any pointers. My program is a document-based application with a main document window that includes an NSTe