我是一个新手,试图在2008年更新一个免费软件应用程序,然后(显然)被程序员放弃,他们没有回复我的电子邮件,并且都为当前的MacOS更新了它,并且还创建了一个版本.苹果手机.我想这将是一个漫长而有点噩梦的过程,但我很期待学习.
现在我处于开始阶段,我正在查看原始的以下GeniusPair.h文件:
#import <Foundation/Foundation.h> @class GeniusItem; @class GeniusAssociation; extern const int kGeniusPairDisabledImportance; extern const int kGeniusPairMinimumImportance; extern const int kGeniusPairNormalImportance; extern const int kGeniusPairMaximumImportance; @interface GeniusPair : NSObject <NSCoding,NSCopying> { GeniusAssociation * _associationAB; //!< Stats for standard learning mode directional relationship. GeniusAssociation * _associationBA; //!< Stats for Jepardy style learning mode directional relationship. NSMutableDictionary * _userDict; } + (NSArray *) associationsForPairs:(NSArray *)pairs useAB:(BOOL)useAB useBA:(BOOL)useBA; - (id) initWithItemA:(GeniusItem *)itemA itemB:(GeniusItem *)itemB userDict:(NSMutableDictionary *)userDict; //varIoUs other methods declared @end @interface GeniusPair (GeniusDocumentAdditions) - (BOOL) disabled; //varIoUs other methods declared @end @interface GeniusPair (TextImportExport) - (NSString *) tabularTextByOrder:(NSArray *)keyPaths; //varIoUs other methods declared @end
我的问题是(问题是):为什么.h文件中有多个接口? @interface GeniusPair:NSObject和@interface GeniusPair(TextImportExport)有什么区别?什么让@interface后跟括号中的内容与@interface后跟冒号?
非常感谢您的帮助解释.