This repository has been archived by the owner on Mar 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
NSRMap
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.
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 | |
---|---|---|
|
Marks the property as sendable-only. | shouldSendProperty:whenNested: |
|
Marks the property as retrievable-only. | encodeValueForProperty:remoteKey: & remoteProperties |
|
Define a custom encoder method for this property. | encodeValueForProperty:remoteKey: |
|
Define a custom decoder method for this property. | decodeRemoteValue:forRemoteKey:change: |
|
Define this property as being a belongs_to association. | shouldOnlySendIDKeyForNestedObjectProperty: |
|
Define this property as being a has_many association | nestedClassForProperty: |
|
Send this property when the object is nested in another object. | shouldSendProperty:whenNested: |
|
Exclude this property from NSRMap if a * is defined. |
remoteProperties |