GBCategoryData Class Reference
| Inherits from | GBModelBase : NSObject | 
| Conforms to | GBObjectDataProviding | 
| Declared in | GBCategoryData.h GBCategoryData.m  | 
Tasks
Initialization & disposal
- 
	
		
+ categoryDataWithName:className:Returns autoreleased instance of the category data with the given data. - 
	
		
– initWithName:className:Initializes the category with the given name. 
Category data
- 
	
		
isExtensionDetermines whether this category is extension or not. property - 
	
		
nameOfCategoryThe name of the category ornilif this is an extension. property - 
	
		
nameOfClassThe name of the class the category extends. property - 
	
		
idOfCategoryThe ID of the category composed of class name followed by category name in parenthesis. property - 
	
		
adoptedProtocolsCategories adopted protocols, available viaGBAdoptedProtocolsProvider. property - 
	
		
methodsCategories methods, available viaGBMethodsProvider. property 
Other Methods
- 
	
		
– mergeDataFromObject:Merges all data from the given object. - 
	
		
– isTopLevelObjectSpecifies whether this is a top level object or not. 
Properties
adoptedProtocols
Categories adopted protocols, available via GBAdoptedProtocolsProvider.
@property (readonly) GBAdoptedProtocolsProvider *adoptedProtocolsDeclared In
GBCategoryData.hidOfCategory
The ID of the category composed of class name followed by category name in parenthesis.
@property (readonly) NSString *idOfCategoryDeclared In
GBCategoryData.hisExtension
Determines whether this category is extension or not.
@property (readonly) BOOL isExtensionDeclared In
GBCategoryData.hmethods
Categories methods, available via GBMethodsProvider.
@property (readonly) GBMethodsProvider *methodsDeclared In
GBCategoryData.hClass Methods
categoryDataWithName:className:
Returns autoreleased instance of the category data with the given data.
+ (id)categoryDataWithName:(NSString *)name className:(NSString *)classNameParameters
- name
 - The name of the category or 
nilif this is extension. 
- className
 - The name of the class the category extends.
 
Return Value
Returns initialized object.
Exceptions
- NSException
 - Thrown if the given class name is 
nilor empty. 
Declared In
GBCategoryData.hInstance Methods
initWithName:className:
Initializes the category with the given name.
- (id)initWithName:(NSString *)name className:(NSString *)classNameParameters
- name
 - The name of the category.
 
- className
 - The name of the class the category extends.
 
Return Value
Returns initialized object.
Discussion
This is the designated initializer.
Exceptions
- NSException
 - Thrown if the given class name is 
nilor empty. 
Declared In
GBCategoryData.hisTopLevelObject
Specifies whether this is a top level object or not.
- (BOOL)isTopLevelObjectDiscussion
Top level objects are classes, categories and protocols.
Declared In
GBModelBase.h@95 -> GBCategoryData.mmergeDataFromObject:
Merges all data from the given object.
- (void)mergeDataFromObject:(id)sourceParameters
- source
 - Source object to merge from.
 
Discussion
Source object is left unchanged. If the same object is passed in, nothing happens. Subclasses should override and add their own specifics, however they should send super object the message as well! Here's overriden method example:
- (void)mergeDataFromObject:(GBModelBase *)source {
	// source data validation here...
	[super mergeDataFromObject:source];
	// merge custom data here...
}
		
	Declared In
GBModelBase.h@71 -> GBCategoryData.m