• 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
KVC Compliance Document: What if ivar in an NSSet?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

KVC Compliance Document: What if ivar in an NSSet?


  • Subject: KVC Compliance Document: What if ivar in an NSSet?
  • From: Jerry Krinock <email@hidden>
  • Date: Fri, 14 Dec 2007 12:14:51 -0800

In the Key Value Programming Coding Guide > Ensuring KVC Compliance,

http://developer.apple.com/documentation/Cocoa/Conceptual/KeyValueCoding/Concepts/Compliant.html

It says:

"For to-many relationships, KVC compliance requires that...Your class implements a method named -<key> that returns an array..."

I would say that an NSSet ivar is a to-many relationship. Does this mean that my accessors must translate NSSet <-> NSArray, or am I reading the documentation too literally?

If the latter, may I interpret an NSSet to be a to-one relationship for KVC purposes?

Jerry Krinock
_______________________________________________

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: KVC Compliance Document: What if ivar in an NSSet?
      • From: mmalc crawford <email@hidden>
  • Prev by Date: Re: Access to Localized Portions of Private Framework without having App Localized
  • Next by Date: Re: Access to Localized Portions of Private Framework without having App Localized
  • Previous by thread: [SOLVED] How to Implement File Encryption with SSCrypto?
  • Next by thread: Re: KVC Compliance Document: What if ivar in an NSSet?
  • Index(es):
    • Date
    • Thread