Skip to content

Commit

Permalink
More minor style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
benlangfeld committed Sep 25, 2010
1 parent ded998f commit 5586f8a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion TNMessageBoard.j
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
@param aColor a CPColor that will be used as background
@param aDate the date of the message
*/
- (void)addMessage:(CPString)aMessage from:(CPString)anAuthor color:(CPColor)aColor date:(CPDate)aDate
- (void)addMessage:(CPString)aMessage from:(CPString)anAuthor date:(CPDate)aDate color:(CPColor)aColor
{
var messageView = [[TNMessageView alloc] initWithFrame:CPRectMake(0, 0, 100, 100)
author:anAuthor
Expand Down
12 changes: 4 additions & 8 deletions TNStackView.j
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
of each subviews. The subview can then, if needed adjust its height, it's content
call it's mom or whatever
*/
@implementation TNStackView: CPView
@implementation TNStackView : CPView
{
CPArray dataSource @accessors(property=dataSource);
int padding @accessors(property=padding);
CPArray dataSource @accessors;
int padding @accessors;
BOOL reversed @accessors(getter=isReversed, setter=setReversed:);
CPArray stackedViews;
}
Expand Down Expand Up @@ -67,11 +67,9 @@
position.origin.x = padding;
}
else
{
position = CGRectMake(padding, padding, [self bounds].size.width - (padding * 2), 0);
}

return position
return position;
}

/*! reload the content of the datasource
Expand Down Expand Up @@ -114,9 +112,7 @@
[currentView setFrame:position];

if ([currentView respondsToSelector:@selector(layout)])
{
[currentView layout];
}

[self addSubview:currentView];
[stackedViews addObject:currentView];
Expand Down

0 comments on commit 5586f8a

Please sign in to comment.