Auto-generated ordered relationship accessors for Core Data
| Originator: | satsumac | ||
| Number: | rdar://10773966 | Date Originated: | Jan 30th 2012 |
| Status: | Open | Resolved: | ? |
| Product: | Developer Tools | Product Version: | 4.2.x |
| Classification: | Enhancement | Reproducible: | n/a |
Now that Core Data got support for ordered relationships the KVC ordered accessor methods… -countOf<Key> -objectIn<Key>AtIndex: -<key>AtIndexes: -get<Key>:range: -insertObject:in<Key>AtIndex: -insert<Key>:atIndexes: -removeObjectFrom<Key>AtIndex: -remove<Key>AtIndexes: -replaceObjectIn<Key>AtIndex:withObject: -replace<Key>AtIndexes:with<Key>: …should be auto-generated at runtime by Core Data in the same way as… -add<Key>Object: -add<Key>: -remove<Key>Object: -remove<Key>: …are.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
I'm using Core Data with an entity with an ordered relationship to another entity.
Core Data is generating the signature, "- removeAtIndexes:" in the header file. Yet when I attempt to invoke the method it states, unrecognized selector.
Core Data should not generate the declaration if it doesn't provide an implementation. If this is somehow intended to be useful to the developer, the
declaration should at least be flagged to indicate its not implemented. Otherwise it is difficult to determine from the generated header what methods are valid
and which are not.