I did something similar recently with strikethrough:

NSAttributedString *string1  = [[NSAttributedString alloc] 
initWithString:@"TRAIN -  " attributes:nil];
        NSAttributedString *string2 = [[NSAttributedString alloc] 
initWithString:@"INTERACTIVE" 
attributes:@{NSStrikethroughStyleAttributeName:@(NSUnderlineStyleSingle)}];
        NSAttributedString *string3 = [[NSAttributedString alloc] 
initWithString:@" MAP" attributes:nil];
        
        NSMutableAttributedString* titleString = [string1 mutableCopy];
        [titleString appendAttributedString:string2];
        [titleString appendAttributedString:string3];
        [titleLabel setAttributedText: titleString];



want The equivalent for underscore is:  NSUnderlineStyleAttributeName

On Feb 12, 2016, at 9:39 AM, David Hoerl <dho...@mac.com> wrote:

I want to build a table with a left identifier, then a tab stop (well actually 
a few), each having some text in it.

What I'd dearly love to do is add a dotted line style underline that goes from 
the right position of the left most text then butts up to the tab stop to its 
right, up to the left begin of text: for instance:

SomeIdentifier.................FirstTabValue.......

Is there a mechanism to do this? Even a gray solid underline that visually 
aligns the items works too (background image?)


Thanks for any pointers.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/ddelmonte%40mac.com

This email sent to ddelmo...@mac.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to