DrawKit
Vector and illustration framework for Mac OS X
Instance Methods | Class Methods | List of all members
DKLayer(Metadata) Category Reference

adds some convenience methods for standard meta data attached to a graphic object. More...

Instance Methods

(void) - addMetadata:
 
(NSColor *) - colourForKey:
 
(CGFloat- floatValueForKey:
 
(BOOL- hasMetadataForKey:
 
(NSInteger- intValueForKey:
 
(NSMutableDictionary *) - metadata
 
(NSUInteger- metadataChecksum
 
(void) - metadataDidChangeKey:
 
(DKMetadataItem *) - metadataItemForKey:
 
(NSArray *) - metadataKeys
 
(id- metadataObjectForKey:
 
(void) - metadataWillChangeKey:
 
(void) - removeMetadataForKey:
 
(DKLayerMetadataSchema) - schema
 
(void) - setColour:forKey:
 
(void) - setFloatValue:forKey:
 
(void) - setIntValue:forKey:
 
(void) - setMetadata:
 
(void) - setMetadataItem:forKey:
 
(void) - setMetadataItemType:forKey:
 
(void) - setMetadataItemValue:forKey:
 
(void) - setSize:forKey:
 
(void) - setString:forKey:
 
(void) - setupMetadata
 
(NSSize) - sizeForKey:
 
(NSString *) - stringForKey:
 
(BOOL- supportsMetadata
 
(void) - updateMetadataKeys
 

Class Methods

(BOOL+ metadataChangesAreUndoable
 
(void) + setMetadataChangesAreUndoable:
 

Detailed Description

adds some convenience methods for standard meta data attached to a graphic object.

adds some convenience methods for standard meta data attached to a graphic object. By default the metadata is just an uncomitted id, but using this sets it to be a mutable dictionary. You can then easily get and set values in that dictionary.

Method Documentation

- (void) addMetadata: (NSDictionary *)  dict

Extends class DKLayer.

- (NSColor*) colourForKey: (NSString *)  key

Extends class DKLayer.

- (CGFloat) floatValueForKey: (NSString *)  key

Extends class DKLayer.

- (BOOL) hasMetadataForKey: (NSString *)  key

Extends class DKLayer.

- (NSInteger) intValueForKey: (NSString *)  key

Extends class DKLayer.

- (NSMutableDictionary*) metadata

Extends class DKLayer.

+ (BOOL) metadataChangesAreUndoable

Extends class DKLayer.

- (NSUInteger) metadataChecksum

Extends class DKLayer.

- (void) metadataDidChangeKey: (NSString *)  key

Extends class DKLayer.

- (DKMetadataItem*) metadataItemForKey: (NSString *)  key

Extends class DKLayer.

- (NSArray*) metadataKeys

Extends class DKLayer.

- (id) metadataObjectForKey: (NSString *)  key

Extends class DKLayer.

- (void) metadataWillChangeKey: (NSString *)  key

Extends class DKLayer.

- (void) removeMetadataForKey: (NSString *)  key

Extends class DKLayer.

- (DKLayerMetadataSchema) schema

Extends class DKLayer.

- (void) setColour: (NSColor *)  colour
forKey: (NSString *)  key 

Extends class DKLayer.

- (void) setFloatValue: (float)  val
forKey: (NSString *)  key 

Extends class DKLayer.

- (void) setIntValue: (int)  val
forKey: (NSString *)  key 

Extends class DKLayer.

- (void) setMetadata: (NSDictionary *)  dict

Extends class DKLayer.

+ (void) setMetadataChangesAreUndoable: (BOOL undo

Extends class DKLayer.

- (void) setMetadataItem: (DKMetadataItem *)  item
forKey: (NSString *)  key 

Extends class DKLayer.

- (void) setMetadataItemType: (DKMetadataType)  type
forKey: (NSString *)  key 

Extends class DKLayer.

- (void) setMetadataItemValue: (id value
forKey: (NSString *)  key 

Extends class DKLayer.

- (void) setSize: (NSSize)  size
forKey: (NSString *)  key 

Extends class DKLayer.

- (void) setString: (NSString *)  string
forKey: (NSString *)  key 

Extends class DKLayer.

- (void) setupMetadata

Extends class DKLayer.

- (NSSize) sizeForKey: (NSString *)  key

Extends class DKLayer.

- (NSString*) stringForKey: (NSString *)  key

Extends class DKLayer.

- (BOOL) supportsMetadata

Extends class DKLayer.

- (void) updateMetadataKeys

Extends class DKLayer.