• 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: Stupid Cocoa question. How can you tell if the object you are looking at is a property or an ivar?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stupid Cocoa question. How can you tell if the object you are looking at is a property or an ivar?


  • Subject: Re: Stupid Cocoa question. How can you tell if the object you are looking at is a property or an ivar?
  • From: Michael David Crawford <email@hidden>
  • Date: Wed, 20 May 2015 16:30:44 -0700

If you have so many ivars, or so many properties that it's a lot of
work to figure out which is which, quite likely you're doing something
wrong.

Now you're already refactoring your code, so you're doing something right there.

It is quite common that well-done refactoring reduces the numbers of
lines of code.
Michael David Crawford, Consulting Software Engineer
email@hidden
http://www.warplife.com/mdc/

   Available for Software Development in the Portland, Oregon Metropolitan
Area.


On Wed, May 20, 2015 at 4:17 PM, Jens Alfke <email@hidden> wrote:
>
>> On May 20, 2015, at 4:08 PM, Eric Wing <email@hidden> wrote:
>>
>> You could use the Objective-C runtime to find out which things are properties.
>
> You could, but isn't it a lot easier to just look at the character before the name and check whether it's a "."?
>
> --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
_______________________________________________

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: 
 >Stupid Cocoa question. How can you tell if the object you are looking at is a property or an ivar? (From: Alex Zavatone <email@hidden>)
 >Re: Stupid Cocoa question. How can you tell if the object you are looking at is a property or an ivar? (From: Eric Wing <email@hidden>)
 >Re: Stupid Cocoa question. How can you tell if the object you are looking at is a property or an ivar? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Stupid Cocoa question. How can you tell if the object you are looking at is a property or an ivar?
  • Next by Date: Re: Stupid Cocoa question. How can you tell if the object you are looking at is a property or an ivar?
  • Previous by thread: Re: Stupid Cocoa question. How can you tell if the object you are looking at is a property or an ivar?
  • Next by thread: Re: Stupid Cocoa question. How can you tell if the object you are looking at is a property or an ivar?
  • Index(es):
    • Date
    • Thread