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 global INKHandler settings #35

Open
lazerwalker opened this issue Apr 8, 2014 · 1 comment
Open

Add global INKHandler settings #35

lazerwalker opened this issue Apr 8, 2014 · 1 comment

Comments

@lazerwalker
Copy link
Member

There are a number of options you can set on an INKHandler object, like useSystemDefault or useFallback. Right now, you need to set those individually on each INKHandler object in your app, but 99% of the time you actually just want them to apply across all INKHandler objects in your app.

We should consider perhaps creating getter/setter class methods on INKHandler that apply globally to every INKHandler object. I'm skeptical of adding in that bit of global state, but in most cases it'll save a meaningful amount of boilerplate code. I'm not 100% sure this is a good idea (or that it's not a completely-terrible "why the hell would you EVER do this?" idea), but it's worth pondering.

The old per-object properties should definitely still exist.

@pedro380085
Copy link

Right now I'm using a category that does exactly that (set the same configs to every single handler).

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

No branches or pull requests

2 participants