• 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: Cocoa says not KVC compliant
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa says not KVC compliant


  • Subject: Re: Cocoa says not KVC compliant
  • From: mmalc crawford <email@hidden>
  • Date: Wed, 02 Jul 2008 14:04:55 -0700


On Jul 2, 2008, at 12:26 PM, Alex Wait wrote:

if you have the @property statement, and you use the I think @synthesize
(could be wrong about that) you don't need to write the functions yourself.



<http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Articles/chapter_5_section_3.html#//apple_ref/doc/uid/TP30001163-CH17-SW9 > ("Property Implementation Directives").
Then see also:
<http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Articles/chapter_5_section_3.html#//apple_ref/doc/uid/TP30001163-CH17-SW10 > ("Core Foundation").



Try taking out the @property statement.

This just doesn't make sense.
(a) Properties are orthogonal to KVC:
<http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Articles/chapter_5_section_5.html#//apple_ref/doc/uid/TP30001163-CH17-SW6 >.
(b) Declaring properties is considered to be best practice precisely because they make the semantics of access clear -- there's no reason at all to remove the declaration.


Chris and Nathan have addressed the original question.

mmalc

_______________________________________________

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: 
 >Cocoa says not KVC compliant (From: Milen Dzhumerov <email@hidden>)
 >Re: Cocoa says not KVC compliant (From: "Alex Wait" <email@hidden>)

  • Prev by Date: Re: Cocoa says not KVC compliant
  • Next by Date: Layer hosting view not redisplaying under PPC
  • Previous by thread: Re: Cocoa says not KVC compliant
  • Next by thread: Re: Cocoa says not KVC compliant
  • Index(es):
    • Date
    • Thread