I have a script using UI, and a second which contains a custom view class for modifying an image. At a certain point, script A generates an image. It then passes this image to the custom view class, which is added as a subviews and allows the user to edit the image. I want to have the custom view class return the image when editing is done, back to the main script.
If this doesn't make sense,
1. Script passes an image from script A to an instance of the custom view class from script B
2. User uses custom view class to modify image
3. User confirms that they are finished.
4. Modified image is passed from script B back to script A
I'm having trouble with step 4. This would be accomplished by return from a function, but how from a class?