Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add macro for mapper to create default number formatter #28

Closed
chillpop opened this issue Feb 16, 2015 · 0 comments
Closed

Add macro for mapper to create default number formatter #28

chillpop opened this issue Feb 16, 2015 · 0 comments
Assignees

Comments

@chillpop
Copy link
Contributor

like so:

#ifndef VOK_MAP_FOREIGN_STRING_TO_LOCAL_NUMBER
#   define VOK_MAP_FOREIGN_STRING_TO_LOCAL_NUMBER(inputKeyPath, coreDataSelectorSymbol) [VOKManagedObjectMap mapWithForeignKeyPath:inputKeyPath coreDataKey:VOK_CDSELECTOR(coreDataSelectorSymbol) numberFormatter:[NSNumberFormatter new]]
#endif

To allow for easy mapping of strings to numbers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants