BDPropertyListAssignment

Inherits from:
BDAssignment
NSObject
Conforms to:
NSCoding
BDPropertyListEncoding (informal protocol)
Declared in:
BDRuleEngine/BDPropertyListAssignment.h

Class at a Glance

A BDPropertyListAssignment is a special kind of assignment that, when fired, treats its value as the string representation of a Cocoa property list type.

This makes it possible to easily use BDRuleEditor to define rules that resolve to NSArray and NSDictionary objects.


Class Description

A BDPropertyListAssignment is a special kind of assignment that, when fired, treats its value as the string representation of a Cocoa property list type.

This makes it possible to easily use BDRuleEditor to define rules that resolve to NSArray and NSDictionary objects.

Note that the string representation must be correct; otherwise, an exception may be raised or nil may be returned.


Adopted Protocols

NSCoding
-encodeWithCoder:
-initWithCoder:
 
BDPropertyListEncoding (informal protocol)
-encodeIntoPropertyList:
-initWithPropertyList:owner:
-awakeWithPropertyList:

Method Types

Firing
-fireInContext:

Instance Methods

fireInContext:

- (id)fireInContext:(BDRuleContext *)context

"Fires" the assignment in the given context. In BDPropertyListAssignment, this causes the assignment's value to be treated as the string representation of a property list type. If it is malformed, nil may be returned or an exception may be raised (depending on what happens when the NSString containing the value is sent -propertyList).

If the value of this assignment is not a string, the results are undefined.


Copyright © 2002, 2003 bDistributed.com, Inc. All rights reserved worldwide.