Thanks, exactly what I need.
Btw, is there any easy way to center this line vertically? Or I need
to measure it's height and offset it vertically myself?
On Mon, Jul 28, 2008 at 9:57 AM, chaitanya pandit
[EMAIL PROTECTED] wrote:
Hi,
Heres what u can do,
NSString *stringToDraw; // the string
On 28.07.2008, at 08:23, Vitaly Ovchinnikov wrote:
Thanks, exactly what I need.
Btw, is there any easy way to center this line vertically? Or I need
to measure it's height and offset it vertically myself?
NSParagraphStyle -setAlignment: ?
Cheers,
-- Uli Kusterer
The Witnesses of TeachText
This one aligns string horizontally, I need vertical alignment.
Well, OK, will measure it's height and center it myself.
On Mon, Jul 28, 2008 at 7:12 PM, Uli Kusterer
[EMAIL PROTECTED] wrote:
On 28.07.2008, at 08:23, Vitaly Ovchinnikov wrote:
Thanks, exactly what I need.
Btw, is there any
On 28.07.2008, at 17:22, Vitaly Ovchinnikov wrote:
This one aligns string horizontally, I need vertical alignment.
Well, OK, will measure it's height and center it myself.
Oh, sorry. Wasn't quite awake when I wrote that, apparently. Yeah, I
think vertical is up to you.
Cheers,
-- Uli
Hello,
What should I pass to -drawInRect's attributes to draw NSString as a
single line with ellipsis at the end if it doesn't fit to the rect?
Or point me to another method that can do that.
Thank you.
___
Cocoa-dev mailing list
Hi,
Heres what u can do,
NSString *stringToDraw; // the string to draw
NSMutableDictionary *attrs = [NSMutableDictionary
dictionaryWithCapacity:2];
NSMutableParagraphStyle *ps = [[[NSMutableParagraphStyle alloc] init]
autorelease];
[ps setLineBreakMode:NSLineBreakByTruncatingTail];
[attrs