Retired Document
Important: This document may not represent best practices for current development. Links to downloads and other resources may no longer be valid.
TableSearch/APLProduct.h
/* |
Copyright (C) 2013-2015 Apple Inc. All Rights Reserved. |
See LICENSE.txt for this sample’s licensing information |
Abstract: |
Simple class to represent a product, with a product type and name. Provides methods to retrieve the names of the available types of product, and the localized name of a product for display. |
*/ |
extern NSString *ProductTypeDevice; |
extern NSString *ProductTypeDesktop; |
extern NSString *ProductTypePortable; |
@interface APLProduct : NSObject <NSCoding> |
@property (nonatomic, copy) NSString *name; |
@property (nonatomic, copy) NSString *type; |
+ (instancetype)productWithType:(NSString *)type name:(NSString *)name; |
+ (NSArray *)deviceTypeNames; |
+ (NSString *)displayNameForType:(NSString *)type; |
@end |
Copyright © 2013 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2013-05-23