• 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: setPrimitiveValue:forKey: and to-many relationships
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setPrimitiveValue:forKey: and to-many relationships


  • Subject: Re: setPrimitiveValue:forKey: and to-many relationships
  • From: Quincey Morris <email@hidden>
  • Date: Wed, 24 Sep 2008 17:01:38 -0700

On Sep 24, 2008, at 16:34, Sean McBride wrote:

- (void)setChildren:(NSSet *)value_
{
 [self willChangeValueForKey:@"children"
   withSetMutation:NSKeyValueSetSetMutation
   usingObjects:value_];
 [[self primitiveChildren] setSet:value];
 [self didChangeValueForKey:@"children"
   withSetMutation:NSKeyValueSetSetMutation
   usingObjects:value_];
}

This is more direct than either of my suggestions. However, my guess is that [[self primitiveChildren] setSet:value] does not maintain the inverse relationship, if you have one.



_______________________________________________

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: setPrimitiveValue:forKey: and to-many relationships
      • From: "Sean McBride" <email@hidden>
References: 
 >setPrimitiveValue:forKey: and to-many relationships (From: "Sean McBride" <email@hidden>)
 >Re: setPrimitiveValue:forKey: and to-many relationships (From: Quincey Morris <email@hidden>)
 >Re: setPrimitiveValue:forKey: and to-many relationships (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: setPrimitiveValue:forKey: and to-many relationships
  • Next by Date: Re: Merging 3 JPG images into one panoramic image
  • Previous by thread: Re: setPrimitiveValue:forKey: and to-many relationships
  • Next by thread: Re: setPrimitiveValue:forKey: and to-many relationships
  • Index(es):
    • Date
    • Thread