AMWorkflowController sends its delegate a -document message

Originator:vincent.gable
Number:rdar://6454832 Date Originated:18-Dec-2008 12:33 AM
Status:Duplicate/6334532 Resolved:
Product:Mac OS X Product Version:10.5.6 / 9G55
Classification:Other Bug/Workaround Reproducible:Always
 
Summary: 
When an AMWorkflowController controls an AMWorkflowView that is editable, and an action is deleted by clicking the (x) in the view, the delegate of the AMWorkflowController is sent a -document message.  If the delegate does not implement -document, then the action is not deleted from the view.


Steps to Reproduce:
Project demonstrating the issue: http://vgable.com/code/AutomatorTestProject.zip

1) Create a project with an AMWorkflowController that controls an AMWorkflowView, which is set to be editable, and has a workflow with at least one action.

2) Set the delegate of the AMWorkflowController to any object that does not implement
-(id) document;

3) Remove an action from the workflow by clicking on the (x) button on the action's view inside the AMWorkflowView.


Expected Results:
The action is removed from the workflow without error.


Actual Results:
When the AMWorkflowController has a delegate that does not implement -document, then the action is NOT removed from the view.

Project demonstrating the issue: http://vgable.com/code/AutomatorTestProject.zip

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!