GBCategoryData Class Reference

Inherits from GBModelBase : NSObject
Conforms to GBObjectDataProviding
Declared in GBCategoryData.h<br />GBCategoryData.m

Overview

Describes a category.

Tasks

Initialization & disposal

Category data

Other Methods

Class Methods

categoryDataWithName:className:

Returns autoreleased instance of the category data with the given data.

+ (id)categoryDataWithName:(NSString *)name className:(NSString *)className

Parameters

name
The name of the category or nil if this is extension.
className
The name of the class the category extends.

Return Value

Returns initialized object.

Discussion

Returns autoreleased instance of the category data with the given data.

Exceptions

NSException
Thrown if the given class name is nil or empty.

Declared In

GBCategoryData.h
GBCategoryData.m

Instance Methods

description

initWithName:className:

Initializes the category with the given name.

- (id)initWithName:(NSString *)name className:(NSString *)className

Parameters

name
The name of the category.
className
The name of the class the category extends.

Return Value

Returns initialized object.

Discussion

Initializes the category with the given name.

This is the designated initializer.

Exceptions

NSException
Thrown if the given class name is nil or empty.

Declared In

GBCategoryData.h
GBCategoryData.m

mergeDataFromObject:

Properties

adoptedProtocols

Categories adopted protocols, available via GBAdoptedProtocolsProvider .

@property (readonly) GBAdoptedProtocolsProvider *adoptedProtocols

Discussion

Categories adopted protocols, available via GBAdoptedProtocolsProvider .

Declared In

GBCategoryData.h

idOfCategory

The ID of the category composed of class name followed by category name in parenthesis.

@property (readonly) NSString *idOfCategory

Discussion

The ID of the category composed of class name followed by category name in parenthesis.

Declared In

GBCategoryData.h

isExtension

Determines whether this category is extension or not.

@property (readonly) BOOL isExtension

Discussion

Determines whether this category is extension or not.

Declared In

GBCategoryData.h

methods

Categories methods, available via GBMethodsProvider .

@property (readonly) GBMethodsProvider *methods

Discussion

Categories methods, available via GBMethodsProvider .

Declared In

GBCategoryData.h

nameOfCategory

The name of the category or nil if this is an extension.

@property (readonly) NSString *nameOfCategory

Discussion

The name of the category or nil if this is an extension.

Declared In

GBCategoryData.h

nameOfClass

The name of the class the category extends.

@property (readonly) NSString *nameOfClass

Discussion

The name of the class the category extends.

Declared In

GBCategoryData.h