IXuniEditableCollectionView Protocol Reference

Conforms to IXuniCollectionView
Declared in ICollectionView.h

Overview

Defines methods and properties that extend ICollectionView to provide editing capabilities.

  canAddNew required method

Gets a value that indicates whether a new item can be added to the collection.

@property (readonly) BOOL canAddNew

Discussion

Gets a value that indicates whether a new item can be added to the collection.

Declared In

ICollectionView.h

  canCancelEdit required method

Gets a value that indicates whether the collection view can discard pending changes and restore the original values of an edited object.

@property (readonly) BOOL canCancelEdit

Discussion

Gets a value that indicates whether the collection view can discard pending changes and restore the original values of an edited object.

Declared In

ICollectionView.h

  canRemove required method

Gets a value that indicates whether items can be removed from the collection.

@property (readonly) BOOL canRemove

Discussion

Gets a value that indicates whether items can be removed from the collection.

Declared In

ICollectionView.h

  currentAddItem required method

Gets the item that is being added during the current add transaction.

@property (readonly) NSObject *currentAddItem

Discussion

Gets the item that is being added during the current add transaction.

Declared In

ICollectionView.h

  currentEditItem required method

Gets the item that is being edited during the current edit transaction.

@property (readonly) NSObject *currentEditItem

Discussion

Gets the item that is being edited during the current edit transaction.

Declared In

ICollectionView.h

  isAddingNew required method

Gets a value that indicates whether an add transaction is in progress.

@property (readonly) BOOL isAddingNew

Discussion

Gets a value that indicates whether an add transaction is in progress.

Declared In

ICollectionView.h

  isEditingItem required method

Gets a value that indicates whether an edit transaction is in progress.

@property (readonly) BOOL isEditingItem

Discussion

Gets a value that indicates whether an edit transaction is in progress.

Declared In

ICollectionView.h

– addNew required method

Adds a new item to the collection.

- (NSObject *)addNew

Return Value

return an object.

Discussion

Adds a new item to the collection.

Declared In

ICollectionView.h

– cancelEdit required method

Ends the current edit transaction and, if possible, restores the original value to the item.

- (void)cancelEdit

Discussion

Ends the current edit transaction and, if possible, restores the original value to the item.

Declared In

ICollectionView.h

– cancelNew required method

Ends the current add transaction and discards the pending new item.

- (void)cancelNew

Discussion

Ends the current add transaction and discards the pending new item.

Declared In

ICollectionView.h

– commitEdit required method

Ends the current edit transaction and saves the pending changes.

- (void)commitEdit

Discussion

Ends the current edit transaction and saves the pending changes.

Declared In

ICollectionView.h

– commitNew required method

Ends the current add transaction and saves the pending new item.

- (void)commitNew

Discussion

Ends the current add transaction and saves the pending new item.

Declared In

ICollectionView.h

– editItem: required method

Begins an edit transaction of the specified item.

- (void)editItem:(NSObject *)item

Parameters

item

the item.

Discussion

Begins an edit transaction of the specified item.

Declared In

ICollectionView.h

– remove: required method

Removes the specified item from the collection.

- (void)remove:(NSObject *)item

Parameters

item

the item.

Discussion

Removes the specified item from the collection.

Declared In

ICollectionView.h

– removeAt: required method

Removes the item at the specified index from the collection.

- (void)removeAt:(int)index

Parameters

index

the specified index.

Discussion

Removes the item at the specified index from the collection.

Declared In

ICollectionView.h

– addObject: required method

Adds a new object to the end of the collection.

- (void)addObject:(NSObject *)anObject

Parameters

anObject

object to add.

Discussion

Adds a new object to the end of the collection.

Declared In

ICollectionView.h

– addObjects: required method

Adds an array of objects to the end of the collection.

- (void)addObjects:(NSArray *)objects

Parameters

objects

objects to add.

Discussion

Adds an array of objects to the end of the collection.

Declared In

ICollectionView.h

– insertObject:atIndex: required method

Inserts a new object at the specified location.

- (void)insertObject:(NSObject *)anObject atIndex:(NSUInteger)index

Parameters

anObject

object to add.

index

location of object.

Discussion

Inserts a new object at the specified location.

Declared In

ICollectionView.h

– removeAllObjects required method

Remove all objects from the collection.

- (void)removeAllObjects

Discussion

Remove all objects from the collection.

Declared In

ICollectionView.h

– replaceObjectAtIndex:withObject: required method

Replace the object at the current location with a new object.

- (void)replaceObjectAtIndex:(NSUInteger)index withObject:(NSObject *)anObject

Parameters

index

location to replace at.

anObject

the new object.

Discussion

Replace the object at the current location with a new object.

Declared In

ICollectionView.h