On 29 Mar 2014, at 3:11 AM, Rick Mann <rm...@latencyzero.com> wrote: > I'm getting > > -[WireSegment replaceObjectInNodesAtIndex:withObject:]: unrecognized > selector sent to instance > > When I try to send that message. This is one of the > "CoreDataGeneratedAccessors", for an ordered to-many relationship. I don't > see anything in the docs about those. What am I missing? > > -- > Rick
I assume "WireSegment" is an object variable despite the name. I believe that what KVC is giving you for .nodes is an NSSet. What you want to do is [[wireSegment mutableOrderedSetValueForKey: @"nodes"] replaceObjectAtIndex: anIndex withObject: newObject]; … which you’d likely want to wrap in a method of your own. I think. Written in Mail, uncompiled, untested. — F _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com