• 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: Derived properties
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Derived properties


  • Subject: Re: Derived properties
  • From: Christian Ziegler <email@hidden>
  • Date: Wed, 11 Nov 2009 22:13:55 +0100

Ok great, thanks for the answers. Besides the unnecessary @synthesize thats exactly what I've been doing.

Cheers,
Chris

On 11.11.2009, at 21:42, Ken Thomases wrote:

> In addition to what Greg said:
>
> On Nov 11, 2009, at 1:52 PM, Christian Ziegler wrote:
>
>> A basic question here is, for any method which might as well be a property and of course doesn't have any parameters, is it ok to use dot-notation or should'nt you do that.
>
> You shouldn't use dot-notation for things which aren't properties.
>
> However, derived properties _are_ properties.  Not all properties have to be _declared_ properties (using @property).  A property is the presence of the appropriate accessors (and corresponding semantics) in the class's interface.  The rest is sugar on top.
>
> Cheers,
> Ken
>

_______________________________________________

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: 
 >Derived properties (From: Christian Ziegler <email@hidden>)
 >Re: Derived properties (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: -[NSString stringWithCString:encoding:] memory management question
  • Next by Date: [MEET] Reminder : LA CocoaHeads This Thursday 11/12 at 7:30pm
  • Previous by thread: Re: Derived properties
  • Next by thread: -[NSString stringWithCString:encoding:] memory management question
  • Index(es):
    • Date
    • Thread