Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X
I used CopyMPMOperationDelegate and it worked fine :
CopyMPMOperationDelegate delegate = new CopyMPMOperationDelegate();
MPMOperation copy =(MPMOperation) delegate.newCopy(original);
Just one remark: Name and Description will not be copied so just use getters and setters.
Try this:
To copy an operation
MPMOperation copiedOp = MPMOperation.newMPMOperation(<the MPMOperation to be copied>);
To make a new operation from scratch
MPMOperation newOp = MPMOperation.newMPMOperation();
Hope this helps,
David
I used CopyMPMOperationDelegate and it worked fine :
CopyMPMOperationDelegate delegate = new CopyMPMOperationDelegate();
MPMOperation copy =(MPMOperation) delegate.newCopy(original);
Just one remark: Name and Description will not be copied so just use getters and setters.