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

Passing an invalid numeric value to CoreGraphics #12

Open
sveinbjornt opened this issue Mar 9, 2016 · 2 comments
Open

Passing an invalid numeric value to CoreGraphics #12

sveinbjornt opened this issue Mar 9, 2016 · 2 comments

Comments

@sveinbjornt
Copy link

I'm getting lots of the following errors at runtime while using the extended color well. Running OS X 10.11.3:

: Error: this application, or a library it uses, has passed an invalid numeric value (NaN, or not-a-number) to CoreGraphics API and this value is being ignored.Please fix this problem.

@OskarGroth
Copy link

OskarGroth commented Aug 31, 2016

Coming from BFPopoverColorWell.m:

[self.popover showRelativeToRect:self.frame ofView:self.superview preferredEdge:self.preferredEdgeForPopover];

See: http://stackoverflow.com/questions/19187344/how-to-detect-where-nan-is-passing-to-coregraphics-api-on-mac-os-x-10-9

It's caused by the implementation of using a singleton Popover.
Correct implementation is to create a new Popover upon access.

@OskarGroth
Copy link

OskarGroth commented Sep 1, 2016

Tried to fix this but gave up. This project is too bloated (and seems abandoned anyway).
So I created my own lightweight NSPopover Color Picker in Swift 3.

https://github.com/OskarGroth/ColorPickerPopover

It might suit your needs.

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