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

override or extend registered properties #28

Closed
tbrannam opened this issue Mar 12, 2015 · 2 comments
Closed

override or extend registered properties #28

tbrannam opened this issue Mar 12, 2015 · 2 comments

Comments

@tbrannam
Copy link
Contributor

I have been trying to extend some properties to support UIControlState (tintColor) for a custom control. But it appears that a duplicate custom property does not get called - it would be great if custom properties would get called - ideally with the setter block for the original implementation - so that the original implementation could get called in the event that the override's special doesn't have to reimplement the original version.

@tolo
Copy link
Owner

tolo commented Mar 13, 2015

Great idea - I'll certainly look into this.

@tbrannam
Copy link
Contributor Author

similarly it would be nice to be able to modify typeToParser

For example, if I want to add a new fontFunctionParser I would think I could modify

typeToParser[@(ISSPropertyTypeFont)] = [Parcoa choice:@[myCustomFontFunction, fontFunctionParser, fontValueParser]];

which would allow my to hook into processing for a font - and fallback to the other parsers.

@tolo tolo closed this as completed in a5f2b2e Aug 25, 2015
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