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

Stores various drawkit private variables in the metadata. More...

Instance Methods

(void) - addMetadata:
 
(NSColor *) - colourForKey:
 
(CGFloat- floatValueForKey:
 
(BOOL- hasMetadataForKey:
 
(NSInteger- intValueForKey:
 
(NSMutableDictionary *) - metadata
 
(NSUInteger- metadataChecksum
 
(void) - metadataDidChangeKey:
 
(DKMetadataItem *) - metadataItemForKey:
 
(DKMetadataItem *) - metadataItemForKey:limitToLocalSearch:
 
(NSArray *) - metadataItemsForKeysInArray:
 
(NSArray *) - metadataItemsForKeysInArray:limitToLocalSearch:
 
(NSArray *) - metadataKeys
 
(id- metadataObjectForKey:
 
(void) - metadataWillChangeKey:
 
(void) - removeMetadataForKey:
 
(DKMetadataSchema) - 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:
 
(void) - updateMetadataKeys
 

Class Methods

(BOOL+ metadataChangesAreUndoable
 
(void) + setMetadataChangesAreUndoable:
 

Detailed Description

Stores various drawkit private variables in the metadata.

Stores various drawkit private variables in the metadata.

Note that the details of how metadata is stored changed in 1.0b6. Now, the metadata is held in a separate dictionary within the overall userinfo dictionary, rather than as individual items within userInfo. This permits the userInfo dictionary to be used more extensively while keeping metadata grouped together. Using this API shields you from those changes, though if you were accessing userInfo to obtain the metadata, you may need to revise code to call -metadata instead.

Method Documentation

- (void) addMetadata: (NSDictionary *)  dict

Extends class DKDrawableObject.

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

Extends class DKDrawableObject.

- (CGFloat) floatValueForKey: (NSString *)  key

Extends class DKDrawableObject.

- (BOOL) hasMetadataForKey: (NSString *)  key

Extends class DKDrawableObject.

- (NSInteger) intValueForKey: (NSString *)  key

Extends class DKDrawableObject.

- (NSMutableDictionary*) metadata

Extends class DKDrawableObject.

+ (BOOL) metadataChangesAreUndoable

Extends class DKDrawableObject.

- (NSUInteger) metadataChecksum

Extends class DKDrawableObject.

- (void) metadataDidChangeKey: (NSString *)  key

Extends class DKDrawableObject.

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

Extends class DKDrawableObject.

- (DKMetadataItem*) metadataItemForKey: (NSString *)  key
limitToLocalSearch: (BOOL local 

Extends class DKDrawableObject.

- (NSArray*) metadataItemsForKeysInArray: (NSArray *)  keyArray

Extends class DKDrawableObject.

- (NSArray*) metadataItemsForKeysInArray: (NSArray *)  keyArray
limitToLocalSearch: (BOOL local 

Extends class DKDrawableObject.

- (NSArray*) metadataKeys

Extends class DKDrawableObject.

- (id) metadataObjectForKey: (NSString *)  key

Extends class DKDrawableObject.

- (void) metadataWillChangeKey: (NSString *)  key

Extends class DKDrawableObject.

- (void) removeMetadataForKey: (NSString *)  key

Extends class DKDrawableObject.

- (DKMetadataSchema) schema

Extends class DKDrawableObject.

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

Extends class DKDrawableObject.

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

Extends class DKDrawableObject.

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

Extends class DKDrawableObject.

- (void) setMetadata: (NSDictionary *)  dict

Extends class DKDrawableObject.

+ (void) setMetadataChangesAreUndoable: (BOOL undo

Extends class DKDrawableObject.

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

Extends class DKDrawableObject.

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

Extends class DKDrawableObject.

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

Extends class DKDrawableObject.

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

Extends class DKDrawableObject.

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

Extends class DKDrawableObject.

- (void) setupMetadata

Extends class DKDrawableObject.

- (NSSize) sizeForKey: (NSString *)  key

Extends class DKDrawableObject.

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

Extends class DKDrawableObject.

- (void) updateMetadataKeys

Extends class DKDrawableObject.