<|start_filename|>CIImage+Convenience.h<|end_filename|>
/*
 Copyright (C) 2015 Apple Inc. All Rights Reserved.
 See LICENSE.txt for this sample’s licensing information
 
 Abstract:
 A category on CIImage for convienience methods.
 */

@import CoreImage;

@interface CIImage (Convenience)

- (NSData *)aapl_jpegRepresentationWithCompressionQuality:(CGFloat)compressionQuality;

@end


<|start_filename|>NSIndexSet+Convenience.h<|end_filename|>
/*
 Copyright (C) 2015 Apple Inc. All Rights Reserved.
 See LICENSE.txt for this sample’s licensing information
 
 Abstract:
 A category on NSIndexSet for convienience methods.
 */

@import Foundation;

@interface NSIndexSet (Convenience)

- (NSArray *)aapl_indexPathsFromIndexesWithSection:(NSUInteger)section;

@end


<|start_filename|>UICollectionView+Convenience.h<|end_filename|>
/*
 Copyright (C) 2015 Apple Inc. All Rights Reserved.
 See LICENSE.txt for this sample’s licensing information
 
 Abstract:
 A category on UICollectionView for convienience methods.
 */

@import UIKit;

@interface UICollectionView (Convenience)

- (NSArray *)aapl_indexPathsForElementsInRect:(CGRect)rect;

@end
