Skip to content

Instantly share code, notes, and snippets.

@tinus-github
Created March 18, 2010 10:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tinus-github/336236 to your computer and use it in GitHub Desktop.
Save tinus-github/336236 to your computer and use it in GitHub Desktop.
/*
*
* CPAccordionItem.j
*
* This class is required by CPAccordionView, but not implemented.
* I consider this implementation to be too simple to be eligible for copyright.
*
*/
@implementation CPAccordionItem : CPObject
{
CPString label @accessors;
CPView view @accessors;
}
+ (id)itemWithLabel:(CPString)aLabel view:(CPView)aView
{
return [[CPAccordionItem alloc] initWithLabel:aLabel view:aView];
}
- (id)initWithLabel:(CPString)aLabel view:(CPView)aView
{
self = [super init];
if (self) {
[self setLabel:aLabel];
[self setView:aView];
}
return self;
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment