Re: setting tab stops in swift
Re: setting tab stops in swift
- Subject: Re: setting tab stops in swift
- From: Jens Alfke <email@hidden>
- Date: Sat, 29 Aug 2015 12:03:55 -0700
> On Aug 29, 2015, at 11:36 AM, Boyd Collier <email@hidden> wrote:
>
> Thanks very much for the suggestions. Re the possible error in my Obj-C code: Apple's documentation for NSTextTab shows 2 ways to create an NSTextTab; the first is initWithType:location: (which is what I used in my Obj-C code) and the second is initWithTextAlignment:location:options:
Nope, NSTextTab only has a single initializer — the -initWithTextAlignment one. (I just looked at both the Mac and iOS headers to make sure.)
It’s *NSParagraphStyle* that has -initWithType:location:. I think you’ve gotten the two classes mixed up. They’re both declared in the same header, which makes it easy to look at a method declaration and miss which @interface it’s within.
—Jens
_______________________________________________
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