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

Update util code to meet Sketch API updates #30

Merged
merged 2 commits into from
Jan 13, 2016

Conversation

tylergaw
Copy link
Owner

There have been a number of changes with the Sketch plugin API, this plugin needed to be updated to work with this changes.

fixes #29

- I'm not sure when it changed, but at some point calling context.document.currentPage().currentArtboard() stopped falling back to the current page if there is no current artboard. Just need to explicitly check for a current artboard. If one does not exist, choose to add the new layer directly to the page
- Instead of using the undocumented methods of MSBitmaplayer as we were before, add the NSImage to the layer using the documented MSBitmapLayer.initWithFrame_image method.
tylergaw added a commit that referenced this pull request Jan 13, 2016
Update util code to meet Sketch API updates
@tylergaw tylergaw merged commit 00b03f2 into master Jan 13, 2016
@tylergaw tylergaw deleted the 29-sketch-api-changes-updates branch January 13, 2016 07:07
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

Successfully merging this pull request may close these issues.

1 participant