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
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
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
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
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]
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