Skip to content
This repository has been archived by the owner on Mar 23, 2021. It is now read-only.
Dan Hassin edited this page Jun 22, 2012 · 4 revisions

NSRMap was a macro in NSRails that would define special property behaviors. In NSRails 2.0, this macro has been removed and overriding property behavior can now be done by overriding superclass methods.

Making the switch to overrides

  Description Override
=
Defines a Rails equivalent – use if the corresponding property on Rails is not named like your Objective-C Property. encodeValueForProperty:remoteKey: & propertyForRemoteKey:
:
Defines the associated class for this property. nestedClassForProperty:
  Description Override
-s
Marks the property as sendable-only. shouldSendProperty:whenNested:
-r
Marks the property as retrievable-only. encodeValueForProperty:remoteKey: & remoteProperties
-e
Define a custom encoder method for this property. encodeValueForProperty:remoteKey:
-d
Define a custom decoder method for this property. decodeRemoteValue:forRemoteKey:change:
-b
Define this property as being a belongs_to association. shouldOnlySendIDKeyForNestedObjectProperty:
-m
Define this property as being a has_many association nestedClassForProperty:
-n
Send this property when the object is nested in another object. shouldSendProperty:whenNested:
-x
Exclude this property from NSRMap if a * is defined. remoteProperties
Clone this wiki locally