Re: NSTextField and Formatters
Re: NSTextField and Formatters
- Subject: Re: NSTextField and Formatters
- From: Timothy Ritchey <email@hidden>
- Date: Wed, 6 Nov 2002 12:28:20 -0500
I figured out what I was doing wrong, and thought I would post this to
the list so it would go into the archives for anyone that runs into it
the future....
As the documentation clearly states, the paragraph styles apply to the
_entire_ paragraph. You can't apply a paragraph style attributed in the
middle of an attributed string and expect them to be enforced. I moved
the following code above where I start creating my fraction string, and
it started working:
NSMutableParagraphStyle *mps = [[NSMutableParagraphStyle alloc]
init];
[mps setParagraphStyle:[md
objectForKey:NSParagraphStyleAttributeName]];
[mps setMaximumLineHeight:size*1.25];
[mps setMinimumLineHeight:size*1.25];
[md setObject:mps forKey:NSParagraphStyleAttributeName];
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.