Skip to content

Instantly share code, notes, and snippets.

@nickjs
Created November 7, 2008 07:08
Show Gist options
  • Save nickjs/22795 to your computer and use it in GitHub Desktop.
Save nickjs/22795 to your computer and use it in GitHub Desktop.
@implementation LEProfileContentView : CPObject
{
CPColor _backgroundColor;
}
- (id)initUntitled
{
self = [super init];
if(self)
{
_backgroundColor = [CPColor greenColor];
}
return self;
}
- (id)initWithCoder:(CPCoder)aCoder
{
self = [super init];
if(self)
{
_backgroundColor = [aCoder decodeObjectForKey:@"backgroundColor"];
}
}
- (void)encodeWithCoder:(CPCoder)aCoder
{
[aCoder encodeObject:_backgroundColor forKey:@"backgroundColor"];
}
- (void)mapToView:(CPView)view
{
[view setBackgroundColor:_backgroundColor];
}
@end
"280NPLIST;1.0;D;K;4;$topD;K;4;rootD;K;6;CP$UIDd;1;1E;E;K;8;$objectsA;S;5;$nullD;K;6;$classD;K;6;CP$UIDd;1;2E;K;15;backgroundColorD;K;6;CP$UIDd;1;3E;E;D;K;10;$classnameS;20;LEProfileContentViewK;8;$classesA;S;20;LEProfileContentViewS;8;CPObjectE;E;D;K;6;$classD;K;6;CP$UIDd;1;4E;K;20;CPColorComponentsKeyD;K;6;CP$UIDd;1;5E;E;D;K;10;$classnameS;7;CPColorK;8;$classesA;S;7;CPColorS;8;CPObjectE;E;D;K;6;$classD;K;6;CP$UIDd;1;6E;K;10;CP.objectsA;D;K;6;CP$UIDd;1;7E;D;K;6;CP$UIDd;1;8E;D;K;6;CP$UIDd;1;7E;D;K;6;CP$UIDd;1;8E;E;E;D;K;10;$classnameS;7;CPArrayK;8;$classesA;S;7;CPArrayS;8;CPObjectE;E;d;1;0d;1;1E;K;9;$archiverS;15;CPKeyedArchiverK;8;$versionS;6;100000E;"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment