-
Notifications
You must be signed in to change notification settings - Fork 123
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
How to extend NSView, overwrite drawRect #33
Comments
Can you give a full example to try? Specifically defining |
I've put together a gist: I probably do something stupid, so you can hopefully help within minutes. :P ;) |
See the comment I left on your gist, there were only some minor changes but it worked fine for me. |
Gonna close this one I think, now that #42 is tracking the seg fault. @trevorlinton's updated gist does indeed work for me (periodically). |
This is not really a bug, but more of a question:
I'm just not able to find out, how to correctly inherit from NSView and overwrite the drawRect method, getting the rect parameter and call drawRect of super. Any help or hint would be welcome!
I extended the basic example by this:
But as soon as I try some of these, the App crashes with a "Segmentation fault: 11".
The text was updated successfully, but these errors were encountered: