Skip to content

Commit

Permalink
Minor cleanup in the Plot Gallery app.
Browse files Browse the repository at this point in the history
  • Loading branch information
eskroch committed Jul 9, 2011
1 parent 9c13904 commit c064048
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions examples/CorePlotGallery/src/mac/PlotGalleryController.m
Expand Up @@ -155,9 +155,9 @@ - (id)imageBrowser:(IKImageBrowserView *)browser itemAtIndex:(NSUInteger)index

- (void)imageBrowserSelectionDidChange:(IKImageBrowserView *)browser
{
int index = [[browser selectionIndexes] firstIndex];
NSUInteger index = [[browser selectionIndexes] firstIndex];

if (index >= 0) {
if (index != NSNotFound) {
PlotItem *item = [[PlotGallery sharedPlotGallery] objectAtIndex:index];
self.plotItem = item;
}
Expand Down
4 changes: 2 additions & 2 deletions examples/CorePlotGallery/src/shared/PlotGallery.h
Expand Up @@ -18,7 +18,7 @@
- (void)addPlotItem:(PlotItem *)plotItem;

- (void)sortByTitle;
- (int)count;
- (PlotItem *)objectAtIndex:(int)index;
- (NSUInteger)count;
- (PlotItem *)objectAtIndex:(NSUInteger)index;

@end
4 changes: 2 additions & 2 deletions examples/CorePlotGallery/src/shared/PlotGallery.m
Expand Up @@ -76,12 +76,12 @@ - (void)addPlotItem:(PlotItem *)plotItem
[plotItems addObject:plotItem];
}

- (int)count
- (NSUInteger)count
{
return [plotItems count];
}

- (PlotItem *)objectAtIndex:(int)index
- (PlotItem *)objectAtIndex:(NSUInteger)index
{
return [plotItems objectAtIndex:index];
}
Expand Down
2 changes: 0 additions & 2 deletions examples/CorePlotGallery/src/shared/PlotItem.m
Expand Up @@ -164,7 +164,6 @@ - (UIImage *)image
[imageView setUserInteractionEnabled:NO];

[self renderInView:imageView withTheme:nil];
[self reloadData];

UIGraphicsBeginImageContext(imageView.bounds.size);
CGContextRef c = UIGraphicsGetCurrentContext();
Expand Down Expand Up @@ -197,7 +196,6 @@ - (NSImage *)image
[imageView setWantsLayer:YES];

[self renderInView:imageView withTheme:nil];
[self reloadData];

CGSize boundsSize = imageFrame.size;

Expand Down

0 comments on commit c064048

Please sign in to comment.