• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Tabs in NSTextList markers?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: NSReadPixel returning different colors
  • Next by Date: Re: NSReadPixel returning different colors
  • Previous by thread: Checking for Spotlight
  • Next by thread: Re: Order of controls
  • Index(es):
    • Date
    • Thread