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

Default settings for CLDrawTool, CLTextTool? #176

Open
cliffjoyce opened this issue Mar 23, 2017 · 2 comments
Open

Default settings for CLDrawTool, CLTextTool? #176

cliffjoyce opened this issue Mar 23, 2017 · 2 comments

Comments

@cliffjoyce
Copy link

I'd like to specify defaults for some of the tools. For example:

  • CLDrawTool - pen CGSize, ink UIColor.
  • CLTextTool - font name, font UIColor, NSTextAlignment.

Can this be done already?
I didn't see a way to do it via the CLImageToolProtocol's optionalInfo NSDictionary entries.

Even better would to set/save these default values in the app's [NSUserDefaults standardUserDefaults]. That way, the app could initialize these values (if they don't exist yet), and the user's most recent choices could be saved/restored.

@yackle
Copy link
Owner

yackle commented Mar 25, 2017

It certainly seems necessary property for ease of use. But I do not think it is a good thing for the library to use NSUserDefaults without control from developers.

I cannot think of the best solution yet, I will try to change it so that it can be set from optionalInfo.

@yqjroy
Copy link

yqjroy commented Dec 23, 2021

@yackle

It certainly seems necessary property for ease of use. But I do not think it is a good thing for the library to use NSUserDefaults without control from developers.

I cannot think of the best solution yet, I will try to change it so that it can be set from optionalInfo.

So have you already expended optionalInfo properties yet? I come into the same issue as @cliffjoyce cliffjoyce mentioned.

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

3 participants