Re: dictionaryWithObjectsAndKeys

2010-10-09 Thread koko
Yeah. I was way wrapped around the axle. This works just fine: NSMutableParagraphStyle *pStyle = [[NSMutableParagraphStyle new] autorelease]; [pStyle setAlignment:NSRightTextAlignment]; m_textRightAttributes = [NSDictionary dictionaryWithObjectsAndKeys: [NSFont systemFontOfSize:12.0

Re: dictionaryWithObjectsAndKeys

2010-10-09 Thread Ken Thomases
On Oct 9, 2010, at 2:30 PM, k...@highrolls.net wrote: > Is this the correct way to right justify text in an NSTextFieldCell? I believe you have to invoke -setAlignment: on the cell, not (just) include it in the attributes. Regards, Ken ___ Cocoa-dev

Re: dictionaryWithObjectsAndKeys

2010-10-09 Thread Quincey Morris
On Oct 9, 2010, at 12:30, k...@highrolls.net wrote: > m_textAttributes = [NSDictionary dictionary]; > [m_textAttributes setObject:[NSFont systemFontOfSize:12.0] > forKey:NSFontAttributeName]; > NSMutableParagraphStyle *pStyle = [[NSMutableParagraphStyle

Re: dictionaryWithObjectsAndKeys

2010-10-09 Thread koko
NSTextFieldCell? -koko On Oct 9, 2010, at 1:19 PM, Ken Thomases wrote: On Oct 9, 2010, at 2:05 PM, k...@highrolls.net wrote: I want to make a NSDictionary of text attributes to apply to text being drawn in a NSTextFieldCell. This m_textAttributes = [NSDictionary dictionaryWithObjectsAndKeys

Re: dictionaryWithObjectsAndKeys

2010-10-09 Thread Ken Thomases
On Oct 9, 2010, at 2:05 PM, k...@highrolls.net wrote: > I want to make a NSDictionary of text attributes to apply to text being > drawn in a NSTextFieldCell. > > This > > m_textAttributes = [NSDictionary dictionaryWithObjectsAndKeys: [NSFont > systemFontOfSize:12.0]

dictionaryWithObjectsAndKeys

2010-10-09 Thread koko
I want to make a NSDictionary of text attributes to apply to text being drawn in a NSTextFieldCell. This m_textAttributes = [NSDictionary dictionaryWithObjectsAndKeys: [NSFont systemFontOfSize:12.0], NSFontAttributeName, NSRightTextAlignment, NSTextAlignment, nil]; gives this error