• 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
Re: Possible to set tab stops in an NSTextView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Possible to set tab stops in an NSTextView?


  • Subject: Re: Possible to set tab stops in an NSTextView?
  • From: Ken Tozier <email@hidden>
  • Date: Sun, 21 Jun 2009 19:28:32 -0400

Thanks Andrew. That worked.


On Jun 21, 2009, at 7:04 PM, Andrew Farmer wrote:

On 21 Jun 2009, at 15:44, Ken Tozier wrote:
Here's how I interpreted your code

NSArray	*tabStops	= [[[NSArray alloc] initWithObjects:
						[NSNumber numberWithInt: 70],
						[NSNumber numberWithInt: 400],
						[NSNumber numberWithInt: 460],
						nil]
						autorelease];

style		= [[NSParagraphStyle defaultParagraphStyle] mutableCopy];

[style setTabStops: tabStops];

setTabStops takes an array of NSTextTab objects, not an array of integers.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


References: 
 >Possible to set tab stops in an NSTextView? (From: Ken Tozier <email@hidden>)
 >Re: Possible to set tab stops in an NSTextView? (From: Ashley Clark <email@hidden>)
 >Re: Possible to set tab stops in an NSTextView? (From: Ken Tozier <email@hidden>)
 >Re: Possible to set tab stops in an NSTextView? (From: Andrew Farmer <email@hidden>)

  • Prev by Date: Missing functionality in copy/paste of NSAttributedStrings? or of NSData?
  • Next by Date: Re: iPhone: Landscape support for tab bar?
  • Previous by thread: Re: Possible to set tab stops in an NSTextView?
  • Next by thread: Core Data capabilities questions
  • Index(es):
    • Date
    • Thread