• 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: Xcode Symbol Navigator Shows Properties as Methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode Symbol Navigator Shows Properties as Methods


  • Subject: Re: Xcode Symbol Navigator Shows Properties as Methods
  • From: Doug Hill <email@hidden>
  • Date: Tue, 14 Feb 2017 08:22:32 -0800

For all the classes I described, they consist of only property declarations. No method declarations or anything else. I don’t even have any implementation yet for almost all of them. All properties have either default property attributes (that is none specified) or ‘assign’ for scalers (e.g. NSInteger).

Again, why the symbol browser decides to mark some properties as methods (e.g. with a ‘getter’ or ‘setter’) while others are marked as properties is a mystery. But maybe there’s some reason I’m not aware of. Possibly due to inheritence?

Doug


On Feb 13, 2017, at 7:48 PM, Quincey Morris <email@hidden> wrote:

On Feb 13, 2017, at 17:38 , Doug Hill <email@hidden> wrote:

I notice that the classes sometimes show properties as methods.

You didn’t say whether you’re talking about Swift or Obj-C, but I’m guessing Obj-C.

Looking at an existing project of mine, I see both P and M entries relating to properties in the symbol navigator. When I click on a P item, I’m taken to the @property declaration in the .h file. When I click on a M item, I’m taken to the (explicit) method implementation in the .m file. When appropriate, I have both items for the same symbol.

I’d assume that’s what’s going on in your case, but it’s murkier because (I guess) it’s going to depend on whether the property is implicitly synthesized, explicitly synthesized, explicitly implemented, and perhaps subtler conditions such as partial inheritance of accessors, or re-declarations in class extensions or categories.

In other words, what you’re seeing probably has a reason, but you’re going to have to take them on a case-by-case basis to work out what the reason is.


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Xcode Symbol Navigator Shows Properties as Methods
      • From: Quincey Morris <email@hidden>
References: 
 >Xcode Symbol Navigator Shows Properties as Methods (From: Doug Hill <email@hidden>)
 >Re: Xcode Symbol Navigator Shows Properties as Methods (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Xcode Symbol Navigator Shows Properties as Methods
  • Next by Date: Re: [admin] Apple Mailing List Web Links Failing
  • Previous by thread: Re: Xcode Symbol Navigator Shows Properties as Methods
  • Next by thread: Re: Xcode Symbol Navigator Shows Properties as Methods
  • Index(es):
    • Date
    • Thread