Tabs in NSTextList markers?
Tabs in NSTextList markers?
- Subject: Tabs in NSTextList markers?
- From: Peter Seibel <email@hidden>
- Date: Mon, 8 Jan 2007 08:34:28 -0800
I have some code that sets the text lists attribute of a paragraph
style to a NSTextList created like this:
[[NSTextList alloc] initWithMarkerFormat: @"\t{decimal}.\t"
options: 0]
Later I get the text marker like this:
NSString *markerText = [textList markerForItemNumber: itemNumber];
but the marker doesn't contain tabs. If I instead wrap the call to -
markerForItemNumber like this:
NSString *markerText = [NSString stringWithFormat: @"\t%@\t",
[textList markerForItemNumber: itemNumber]];
I get the tabs. The strange thing is that in when I NSLog messages
that interpolate the NSTextList object its printed representation
includes the tabs. Any ideas where they are going?
-Peter
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden