Swift: @objc(…) Attribute
问题 In Apple-generated code (Core Data NSManagedObject subclasses, for example) I see this: @objc(LPFile) public class LPFile: NSManagedObject { ... } My question is: why is the @objc declaration done as above, instead of: @objc public class LPFile: NSManagedObject { ... } or @objcMembers public class LPFile: NSManagedObject { ... } What is special about the separate @objc(identifier) declaration? I can't seem to find documentation about it and googling just turns up the other two approaches.