ARC conversion issue problem with Xcode 4.2
ARC conversion issue problem with Xcode 4.2
- Subject: ARC conversion issue problem with Xcode 4.2
- From: Sean Todd <email@hidden>
- Date: Sat, 15 Oct 2011 20:02:23 -0500
I am trying to convert a Core Data app which uses garbage collection to ARC. When I run the refactoring tool, I see issues like:
Semantic Issue: Type of property 'person' does not match type of accessor 'setPerson:'
The relevant declaration code:
@class ABPerson;
@interface XG2Student : NSManagedObject {
}
@property (nonatomic, retain) ABPerson * person;
- (ABPerson *)person;
- (void)setPerson:(ABPerson *)aPerson;
The relevant implementation:
@implementation XG2Student
@dynamic person;
/* custom getter omitted for brevity */
- (void)setPerson:(ABPerson *)aPerson {
[self willChangeValueForKey:XG2PersonKey];
[self setPrimitivePerson:aPerson];
[self didChangeValueForKey:XG2PersonKey];
self.personUID = [aPerson uniqueId]; // this is the value that is persisted
}
All properties with this issue are Core Data non-standard persistent attributes and their custom setter methods follow the 'Immediate-Update Set Accessor' pattern described in the section "Non-Standard Persistent Attributes" of "Core Data Programming Guide".
Maybe I am missing something obvious but I don't see how the setPerson: method doesn't match the property declaration.
Any help would be greatly appreciated.
Thanks,
Sean
_______________________________________________
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