forked from indragiek/BCCollectionView
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cebff4a
commit 5247718
Showing
9 changed files
with
214 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,19 @@ | |||
// Created by Pieter Omvlee on 01/03/2011. | |||
// Copyright 2011 Bohemian Coding. All rights reserved. | |||
|
|||
#import <Foundation/Foundation.h> | |||
|
|||
#define BCCollectionViewGroupHeight 30 | |||
|
|||
@interface BCCollectionViewGroup : NSObject | |||
{ | |||
NSString *title; | |||
NSRange itemRange; | |||
BOOL isCollapsed; | |||
} | |||
+ (id)groupWithTitle:(NSString *)title range:(NSRange)range; | |||
@property (copy) NSString *title; | |||
@property NSRange itemRange; | |||
@property (setter=setCollapsed:) BOOL isCollapsed; | |||
|
|||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,23 @@ | |||
// Created by Pieter Omvlee on 01/03/2011. | |||
// Copyright 2011 Bohemian Coding. All rights reserved. | |||
|
|||
#import "BCCollectionViewGroup.h" | |||
|
|||
@implementation BCCollectionViewGroup | |||
@synthesize title, itemRange, isCollapsed; | |||
|
|||
+ (id)groupWithTitle:(NSString *)title range:(NSRange)range | |||
{ | |||
BCCollectionViewGroup *group = [[BCCollectionViewGroup alloc] init]; | |||
[group setTitle:title]; | |||
[group setItemRange:range]; | |||
return [group autorelease]; | |||
} | |||
|
|||
- (void)dealloc | |||
{ | |||
[title release]; | |||
[super dealloc]; | |||
} | |||
|
|||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,14 @@ | |||
// Created by Pieter Omvlee on 01/03/2011. | |||
// Copyright 2011 Bohemian Coding. All rights reserved. | |||
|
|||
#import <Foundation/Foundation.h> | |||
|
|||
@interface BCCollectionViewItemLayout : NSObject | |||
{ | |||
NSInteger rowIndex, columnIndex, itemIndex; | |||
NSRect itemRect; | |||
} | |||
@property NSInteger rowIndex, columnIndex, itemIndex; | |||
@property NSRect itemRect; | |||
+ (id)layoutItem; | |||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,14 @@ | |||
// Created by Pieter Omvlee on 01/03/2011. | |||
// Copyright 2011 Bohemian Coding. All rights reserved. | |||
|
|||
#import "BCCollectionViewItemLayout.h" | |||
|
|||
@implementation BCCollectionViewItemLayout | |||
@synthesize rowIndex, columnIndex, itemRect, itemIndex; | |||
|
|||
+ (id)layoutItem | |||
{ | |||
return [[[self alloc] init] autorelease]; | |||
} | |||
|
|||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.