Core Plot (macOS)
Cocoa plotting framework for macOS, iOS, and tvOS
|
Core Plot extensions to NSCoder. More...
#import <NSCoderExtensions.h>
Public Instance Methods | |
Encoding Data | |
(void) | - encodeCGFloat:forKey: |
Encodes a CGFloat and associates it with the string key . More... | |
(void) | - encodeCPTPoint:forKey: |
Encodes a CGPoint and associates it with the string key . More... | |
(void) | - encodeCPTSize:forKey: |
Encodes a CGSize and associates it with the string key . More... | |
(void) | - encodeCPTRect:forKey: |
Encodes a CGRect and associates it with the string key . More... | |
(void) | - encodeCGColorSpace:forKey: |
Encodes a color space and associates it with the string key . More... | |
(void) | - encodeCGPath:forKey: |
Encodes a path and associates it with the string key . More... | |
(void) | - encodeCGImage:forKey: |
Encodes an image and associates it with the string key . More... | |
(void) | - encodeDecimal:forKey: |
Encodes an NSDecimal and associates it with the string key . More... | |
Decoding Data | |
(CGFloat) | - decodeCGFloatForKey: |
Decodes and returns a number that was previously encoded with -encodeCGFloat:forKey: and associated with the string key . More... | |
(CGPoint) | - decodeCPTPointForKey: |
Decodes and returns a point that was previously encoded with -encodeCPTPoint:forKey: and associated with the string key . More... | |
(CGSize) | - decodeCPTSizeForKey: |
Decodes and returns a size that was previously encoded with -encodeCPTSize:forKey: and associated with the string key . More... | |
(CGRect) | - decodeCPTRectForKey: |
Decodes and returns a rectangle that was previously encoded with -encodeCPTRect:forKey: and associated with the string key . More... | |
(nullable CGColorSpaceRef) | - newCGColorSpaceDecodeForKey: |
Decodes and returns an new color space object that was previously encoded with -encodeCGColorSpace:forKey: and associated with the string key . More... | |
(nullable CGPathRef) | - newCGPathDecodeForKey: |
Decodes and returns a new path object that was previously encoded with -encodeCGPath:forKey: and associated with the string key . More... | |
(nullable CGImageRef) | - newCGImageDecodeForKey: |
Decodes and returns a new image object that was previously encoded with -encodeCGImage:forKey: and associated with the string key . More... | |
(NSDecimal) | - decodeDecimalForKey: |
Decodes and returns a decimal number that was previously encoded with -encodeDecimal:forKey: and associated with the string key . More... | |
Core Plot extensions to NSCoder.
Decodes and returns a number that was previously encoded with -encodeCGFloat:forKey: and associated with the string key
.
key | The key associated with the number. |
Decodes and returns a point that was previously encoded with -encodeCPTPoint:forKey: and associated with the string key
.
key | The key associated with the point. |
Decodes and returns a rectangle that was previously encoded with -encodeCPTRect:forKey: and associated with the string key
.
key | The key associated with the rectangle. |
Decodes and returns a size that was previously encoded with -encodeCPTSize:forKey: and associated with the string key
.
key | The key associated with the size. |
Decodes and returns a decimal number that was previously encoded with -encodeDecimal:forKey: and associated with the string key
.
key | The key associated with the number. |
- (void) encodeCGColorSpace: | (nullable CGColorSpaceRef) | colorSpace | |
forKey: | (nonnull NSString *) | key | |
Encodes a color space and associates it with the string key
.
colorSpace | The CGColorSpaceRef to encode. |
key | The key to associate with the color space. |
Encodes a CGFloat and associates it with the string key
.
number | The number to encode. |
key | The key to associate with the number. |
- (void) encodeCGImage: | (nullable CGImageRef) | image | |
forKey: | (nonnull NSString *) | key | |
Encodes an image and associates it with the string key
.
image | The CGImageRef to encode. |
key | The key to associate with the image. |
Encodes a path and associates it with the string key
.
path | The CGPathRef to encode. |
key | The key to associate with the path. |
Encodes a CGPoint and associates it with the string key
.
point | The point to encode. |
key | The key to associate with the point. |
Encodes a CGRect and associates it with the string key
.
rect | The rectangle to encode. |
key | The key to associate with the rectangle. |
Encodes a CGSize and associates it with the string key
.
size | The size to encode. |
key | The key to associate with the size. |
Encodes an NSDecimal and associates it with the string key
.
number | The number to encode. |
key | The key to associate with the number. |
- (nullable CGColorSpaceRef) newCGColorSpaceDecodeForKey: | (nonnull NSString *) | key |
Decodes and returns an new color space object that was previously encoded with -encodeCGColorSpace:forKey: and associated with the string key
.
key | The key associated with the color space. |
- (nullable CGImageRef) newCGImageDecodeForKey: | (nonnull NSString *) | key |
Decodes and returns a new image object that was previously encoded with -encodeCGImage:forKey: and associated with the string key
.
key | The key associated with the image. |
Decodes and returns a new path object that was previously encoded with -encodeCGPath:forKey: and associated with the string key
.
key | The key associated with the path. |