• 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: setting tab stops in swift
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: setting tab stops in swift
      • From: Quincey Morris <email@hidden>
References: 
 >setting tab stops in swift (From: Boyd Collier <email@hidden>)
 >Re: setting tab stops in swift (From: Jens Alfke <email@hidden>)
 >Re: setting tab stops in swift (From: Boyd Collier <email@hidden>)

  • Prev by Date: Re: Impossible leak warning in OS X init method
  • Next by Date: Re: setting tab stops in swift
  • Previous by thread: Re: setting tab stops in swift
  • Next by thread: Re: setting tab stops in swift
  • Index(es):
    • Date
    • Thread