AMWorkflowController does not call updateChangeCount: on the associated NSDocument when an action is altered
| Originator: | aufflick | ||
| Number: | rdar://12899166 | Date Originated: | |
| Status: | Resolved: | ||
| Product: | Developer Tools | Product Version: | Xcode 4.5.2 (4G2008a) |
| Classification: | Other Bug | Reproducible: | Always |
Summary: Via it's delegate, AMWorkflowController obtains a reference to a related NSDocument instance (this is not documented, but that's another issue…). - (void)updateChangeCount:(NSDocumentChangeType)change is correctly called when an action is added/removed/etc., but not when the properties of an action are altered (eg. changing the text in a prompt the user type action etc.) Steps to Reproduce: 1. Create an AMWorkflow object 2. Create an AMWorkflowController and AMWorkflowView (in my case, in a nib file) 3. Assign a delegate to AMWorkflowController which, in response to the - document method, returns an instance of a subclass of NSDocument. 4. Using these objects/ui, create and save a workflow 5. Alter a parameter of any action Expected Results: The change indicator on the window should change. Actual Results: The change indicator on the window is not changed (and proven that updateChangeCount is not called on the document). Regression: None known. Notes: 1. Proven that the indicator does change when actions/added/removed (and updateChangeCount is called) 2. In the Automator app the change indicator does update correctly, so the actions are obviously indicating changes somehow.
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!
indicator
The change indicator on the window should change. HT1621
Actually, the update count is only correctly incremented when adding an action
Not when removing one.