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 Kust
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 ther
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
What u can do is get the actual size occupied by the string using
sizeWithAttributes:attrs and center it accordingly.
-Chaitanya
On 28-Jul-08, at 2:23 AM, Vitaly Ovchinnikov wrote:
Thanks, exactly what I need.
Btw, is there any easy way to center this line vertically? Or I need
to measure i
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 str
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 se
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 (Cocoa-dev@lists.apple