Eliminated block setter methods necessary due to strange library linkage dependencies in GateGuru

This commit is contained in:
Blake Watters
2012-02-23 15:29:50 -05:00
parent 5b655f1a23
commit c779462eea
4 changed files with 55 additions and 108 deletions

View File

@@ -23,7 +23,7 @@
/** @name Cell Mapping Block Callbacks **/
typedef void(^RKTableViewCellForObjectAtIndexPathBlock)(UITableViewCell *cell, id object, NSIndexPath* indexPath);
typedef void(^RKTableViewCellForObjectAtIndexPathBlock)(UITableViewCell *cell, id object, NSIndexPath *indexPath);
typedef CGFloat(^RKTableViewHeightOfCellForObjectAtIndexPathBlock)(id object, NSIndexPath *indexPath);
typedef void(^RKTableViewAccessoryButtonTappedForObjectAtIndexPathBlock)(UITableViewCell *cell, id object, NSIndexPath *indexPath);
typedef NSString*(^RKTableViewTitleForDeleteButtonForObjectAtIndexPathBlock)(UITableViewCell *cell, id object, NSIndexPath *indexPath);
@@ -82,6 +82,17 @@ typedef void(^RKTableViewCellBlock)(UITableViewCell *cell);
*/
@property (nonatomic, retain) NSString* reuseIdentifier;
/**
A Boolean value that determines whether the cell mapping manages basic cell
attributes (accessoryType, selectionStyle, etc.) or defers to a Storyboard/XIB
for defining basic cell attributes.
Setting the accessoryType or selectionStyle will set the value to YES.
**Default**: NO
*/
@property (nonatomic, assign) BOOL managesCellAttributes;
/**
The cell style to use for cells created with this mapping
@@ -185,14 +196,20 @@ typedef void(^RKTableViewCellBlock)(UITableViewCell *cell);
*/
+ (id)cellMapping;
/**
Creates and returns an RKTableCellMapping instance configured with the default cell mappings.
@return An RKTableCellMapping instance with default mappings applied.
@see [RKTableCellMapping addDefaultMappings]
*/
+ (id)defaultCellMapping;
/**
Returns a new auto-released object mapping targeting UITableViewCell. The mapping
will be yielded to the block for configuration.
*/
+ (id)cellMappingUsingBlock:(void (^)(RKTableViewCellMapping *cellMapping))block;
// TODO: Needs NIB support...
/**
Sets up default mappings connecting common properties to their UITableViewCell counterparts as follows: