Re: Possible to set tab stops in an NSTextView?
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