- Inherits from:
- BDAssignment
- NSObject
- Conforms to:
- NSCoding
- BDPropertyListEncoding (informal protocol)
- Declared in:
- BDRuleEngine/BDPropertyListAssignment.h
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.
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.
- NSCoding
- -encodeWithCoder:
- -initWithCoder:
- BDPropertyListEncoding (informal protocol)
- -encodeIntoPropertyList:
- -initWithPropertyList:owner:
- -awakeWithPropertyList:
- Firing
- -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.