Bug 2385 - Application does not prompt to create outlet/action when user Ctrl-drag from the button into the interface definition in the .h file.
Summary: Application does not prompt to create outlet/action when user Ctrl-drag from ...
Status: CLOSED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: 2.9.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Alan McGovern
URL:
Depends on:
Blocks:
 
Reported: 2011-12-07 08:48 UTC by narayanp
Modified: 2011-12-09 09:59 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Screen shot (228.36 KB, image/png)
2011-12-09 02:15 UTC, Atin
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
CLOSED FIXED

Description narayanp 2011-12-07 08:48:55 UTC
Steps to Reproduce:
1. Launch the MonoDevelop.
2. Create iPhone Storyboard single view application.
3. Double click on .storyboard file.
4. Click on far right button on View toolbar.
5. Drag the "View Controller"  from Object section to the Editor area.
6. Add components(button, label etc) to the newly added view controller.
7. Now hold the control key and from the button into the interface definition in the .h file.
8. See it does not prompt to create the outlet/action.

Actual Result:
Application does not prompt to create outlet/action when user Ctrl-drag from the button into the interface definition in the .h file. 

Expected Result:
Application should prompt to create outlet/action when user Ctrl-drag from the button into the interface definition in the .h file. 


Environment:
MonoTouch 5.1.1
Mono Develop 2.9.1
Mono Framework 2.10.6
Mac Lion 10.7
Comment 1 Sebastien Pouliot 2011-12-07 09:05:30 UTC
-> monodevelop
Comment 2 Alan McGovern 2011-12-07 09:30:19 UTC
The odds are pretty high that you're just doing something wrong in Xcode. Creating outlets works just fine for me so could you screencast exactly what you are doing? I recommend using Jing since you're on MacOS, it works quite well:  http://www.techsmith.com/jing.html
Comment 3 Atin 2011-12-09 02:14:17 UTC
Hi Alan,

We have tried again to create outlet/Action for the newly created view controller, but pop up for creating outlet/action is not displayed.

please suggest us if we follow the wrong step. Refer to screen shot.

thanks,
Lal Narayan Pratap
Comment 4 Atin 2011-12-09 02:15:09 UTC
Created attachment 1020 [details]
Screen shot
Comment 5 Alan McGovern 2011-12-09 06:35:22 UTC
You must be pressing the wrong key combinations as this is in Xcode feature and should just work. Would you be able to contact me on IRC to walk through this?

Here is a screencast showing it working correctly: http://screencast.com/t/Kpppg7byt7A
Comment 6 narayanp 2011-12-09 09:25:07 UTC
Hi Alan,

We have tried again and drag the component to MainViewCOntroller.h file to create the Outlet/Action.

   We have first created a new view controller then add some components (Button,Label) on the controller. Drag the component on MainViewController.h file to create the Outlet and Action. But, Nothing happens after drag the component  but when we drag the Component on UIViewController.h file then the pop up displayed to create Outlet/Action and user able to create Outlet/Action.
 
please go through the screencast link.

http://www.screencast.com/t/7WI5ad8Sg
Comment 7 Alan McGovern 2011-12-09 09:54:11 UTC
This looks like something Xcode simply does not support and not an issue with MonoDevelop/MonoTouch. The cause could be that storyboards do not allow you to create outlets in arbitrary files like you try attempting to do. If you had tried creating the outlets in the UIViewController.h file (the one that was displayed by default when you clicked on the ViewController on the visual designer side) instead of the MainViewController.h file as demonstrated in the video, it would have worked.
Comment 8 narayanp 2011-12-09 09:59:40 UTC
this issue is verified and closing this issue as per the Alan comment.