mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-25 07:55:52 +00:00
Merge branch 'master' of github.com:slevenbits/cappuccino into slevenbits
This commit is contained in:
commit
64f85002b1
1 file changed
+4
-5
@@ -178,20 +178,19 @@ var HORIZONTAL_MARGIN = 2;
|
||||
Sets the item prototype to \c anItem
|
||||
|
||||
The item prototype should implement the CPCoding protocol
|
||||
because the item is copied by archiving and unarchiving the
|
||||
prototypal view.
|
||||
because the item is copied by archiving and unarchiving.
|
||||
|
||||
Example:
|
||||
|
||||
<pre>
|
||||
@implement MyCustomView : CPCollectionViewItem
|
||||
@implement MyCustomViewItem : CPCollectionViewItem
|
||||
{
|
||||
CPArray items @accessors;
|
||||
}
|
||||
|
||||
- (id)initWithFrame:(CGRect)aFrame
|
||||
- (id)initWithCibName:(CPString)aCibNameOrNil bundle:(CPBundle)aCibBundleOrNil
|
||||
{
|
||||
self = [super initWithFrame:aFrame];
|
||||
self = [super initWithCibName:aCibNameOrNil bundle:aCibBundleOrNil];
|
||||
if (self)
|
||||
{
|
||||
items = [];
|
||||
|
||||
Reference in new issue
Block a user