CocoaSlideCollection/View/AAPLSlide.h
/* |
Copyright (C) 2015 Apple Inc. All Rights Reserved. |
See LICENSE.txt for this sample’s licensing information |
Abstract: |
This is the "Slide" NSCollectionViewItem subclass declaration. |
*/ |
#import <Cocoa/Cocoa.h> |
/* |
An NSCollectionViewItem that visually represents an AAPLImageFile in an |
NSCollectionView. A Slide's "representedObject" property points to its |
AAPLImageFile. |
*/ |
@interface AAPLSlide : NSCollectionViewItem |
#pragma mark Outlets |
// From NSCollectionViewItem, we also inherit an "imageView" outlet (which we wire up to the AAPLSlideImageView that shows our ImageFile's previewImage) and a "textField" outlet (which we wire up to the NSTextField that shows the ImageFile's filenameWithoutExtension). |
// An NSTextField that shows a description of the ImageFile's kind (e.g. "JPEG image", "PNG image") |
@property(weak) IBOutlet NSTextField *kindTextField; |
// An NSTextField that shows the pixel dimensions of the ImageFile's main image (e.g. "5120 x 2880") |
@property(weak) IBOutlet NSTextField *dimensionsTextField; |
#pragma mark Actions |
- (IBAction)openImageFile:(id)sender; |
- (IBAction)setCollectionViewBackground:(id)sender; |
- (IBAction)clearCollectionViewBackground:(id)sender; |
@end |
Copyright © 2015 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2015-09-16