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

Hook property setters into Objective-C validators #33

Open
Gobbel2000 opened this issue Jun 3, 2020 · 0 comments
Open

Hook property setters into Objective-C validators #33

Gobbel2000 opened this issue Jun 3, 2020 · 0 comments

Comments

@Gobbel2000
Copy link
Collaborator

Setting an illegal value through the property setters of the Python wrapper should raise a descriptive ValueError (or TypeError). This should be accomplished by calling the appropriate key-value-validation methods in objective C for most setters from within the Python wrapper.

An initial implementation exists in the unit_tests branch at ObjectWrapper/GlyphsApp/init.py with _setValueValidation(), doing only type testing for now. This function should eventually be used in all setters where validation is necessary.

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

1 participant