Skip to content

Question: How to call Cocoascript functions from Controller.m #4

@jkusachi

Description

@jkusachi

Firstly, thank you and great work for this plugin, it works very well!

I had a question regarding calling Cocoascript functions from for example,User Subclasses/DemoPanelController.m

the cocoascript piece im looking to write is:

id fill = selection.style().fills().firstObject();
fill.setFillType(4);
fill.setImage(MSImageData.alloc().initWithImage_convertColorSpace(image, false));
fill.setPatternFillType(1);

because im in the .m file, i assume i'll have to convert this to native Objective-C? or is there a way to call a cocoascript function from within the Objective-C method?

Thank you! keep up the good work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions