Dragging delegate/data source IBOutlets onto header file should add declarations

Originator:neil.inglis
Number:rdar://10469375 Date Originated:18-Nov-2011 01:40 PM
Status:Open Resolved:
Product:Developer Tools Product Version:4.2.1
Classification:Enhancement Reproducible:Yes
 
Summary: Xcode 4 introduced the ability to drag outlets to header files and have some of the code auto-generated.  I'd like the ability to drag delegate and datasource outlets onto a header file and have the protocol definition added to the header file as well as any required delegate methods added to the class file.

Steps to Reproduce: Drag a delegate/datasource outlets from Interface Builder to the corresponding header and you cannot connect it to anything.

Expected Results: Dragging the delegate/datasource outlets onto the class name (or superclass name) in the header file would automatically add the protocol definition to the interface declaration and any required protocol methods to the class file.

For example, dragging the 'datasource' outlet of a UITableView would add <UITableViewDataSource> to the header and 

– tableView:cellForRowAtIndexPath:  required method
– tableView:numberOfRowsInSection:  required method

to the class file.

Actual Results: No code generated and outlet not linked.

Regression: N/A

Notes:

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!