在 Cocoa 中,为指针编写 * 的最佳约定是什么?
@property (nonatomic, retain) MyClass * instance;
或者
@property (nonatomic, retain) MyClass *instance;
我注意到 Core Data 的自动生成代码,将 *instance 按关系放置,但 *instance 按属性放置:
@property (nonatomic, retain) NSDate * send;
@property (nonatomic, retain) NSString * text;
@property (nonatomic, retain) User *user;
@property (nonatomic, retain) User *userManager;