Note that there are some explanatory texts on larger screens.

plurals
  1. POCan I delete Core Data's dynamically generated methods in Xcode 4?
    primarykey
    data
    text
    <p>Core Data generated these four methods. Can I delete them because they're generated dynamically, right?</p> <pre><code>@implementation User // . . . @dynamic authorizations; - (void)addAuthorizationsObject:(NSManagedObject *)value { NSSet *changedObjects = [[NSSet alloc] initWithObjects:&amp;value count:1]; [self willChangeValueForKey:@"authorizations" withSetMutation:NSKeyValueUnionSetMutation usingObjects:changedObjects]; [[self primitiveValueForKey:@"authorizations"] addObject:value]; [self didChangeValueForKey:@"authorizations" withSetMutation:NSKeyValueUnionSetMutation usingObjects:changedObjects]; [changedObjects release]; } - (void)removeAuthorizationsObject:(NSManagedObject *)value { NSSet *changedObjects = [[NSSet alloc] initWithObjects:&amp;value count:1]; [self willChangeValueForKey:@"authorizations" withSetMutation:NSKeyValueMinusSetMutation usingObjects:changedObjects]; [[self primitiveValueForKey:@"authorizations"] removeObject:value]; [self didChangeValueForKey:@"authorizations" withSetMutation:NSKeyValueMinusSetMutation usingObjects:changedObjects]; [changedObjects release]; } - (void)addAuthorizations:(NSSet *)value { [self willChangeValueForKey:@"authorizations" withSetMutation:NSKeyValueUnionSetMutation usingObjects:value]; [[self primitiveValueForKey:@"authorizations"] unionSet:value]; [self didChangeValueForKey:@"authorizations" withSetMutation:NSKeyValueUnionSetMutation usingObjects:value]; } - (void)removeAuthorizations:(NSSet *)value { [self willChangeValueForKey:@"authorizations" withSetMutation:NSKeyValueMinusSetMutation usingObjects:value]; [[self primitiveValueForKey:@"authorizations"] minusSet:value]; [self didChangeValueForKey:@"authorizations" withSetMutation:NSKeyValueMinusSetMutation usingObjects:value]; } </code></pre> <h3>Related links:</h3> <ul> <li><a href="https://stackoverflow.com/questions/5564597/core-data-methods-not-in-header-file">Core Data methods not in header file</a></li> <li><a href="https://stackoverflow.com/questions/5253753/xcode4-different-code-generated-for-custom-core-data-managed-objects">Xcode4: Different code generated for custom core data managed objects</a></li> <li><a href="http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CoreData/Articles/cdAccessorMethods.html" rel="nofollow noreferrer">http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CoreData/Articles/cdAccessorMethods.html</a></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload