title: When does MonoDevelop generate the Connect syntax
body: <p>I've been at this for more then a day now and I'm pulling out my hairs here. I'm trying to implement the RedLaser example into my own app but MonoDevelop/MonoTouch just doesn't generate the right code. It must be something I'm (not) doing in Interface Builder. Ok here goes.</p>
  
  <p>In the sample in the 'RLSampleViewController.xib.designer.cs the following is generated:</p>
  
  <pre><code>namespace RedLaserSample {
  
  
      // Base type probably should be MonoTouch.UIKit.UIViewController or subclass
      [MonoTouch.Foundation.Register("RLSampleViewController")]
      public partial class RLSampleViewController {
  
          private OverlayController __mt_overlayController;
     ....
  
          [MonoTouch.Foundation.Connect("overlayController")]
          private OverlayController overlayController {
              get {
                  this.__mt_overlayController = ((OverlayController)(this.GetNativeField("overlayController")));
                  return this.__mt_overlayController;
              }
              set {
                  this.__mt_overlayController = value;
                  this.SetNativeField("overlayController", value);
              }
          }
  </code></pre>
  
  <p>In my code the following is generated:</p>
  
  <pre><code>namespace Winkel
  {
      [Register ("ScanArtikelController")]
      partial class ScanArtikelController
      {
          [Outlet]
          Winkel.OverlayController overlayController { get; set; }
  </code></pre>
  
  <p>So the 'Connect' syntax is not generated and I have no clue how to define this correctly in Interface Builder.</p>
  
  <p>Something else I noticed. There must be a different generator active then in my code. This is what was generated for the RedLaser example:</p>
  
  <pre><code>// ------------------------------------------------------------------------------
  //  &lt;autogenerated&gt;
  //      This code was generated by a tool.
  //      Mono Runtime Version: 4.0.30319.1
  // 
  //      Changes to this file may cause incorrect behavior and will be lost if 
  //      the code is regenerated.
  //  &lt;/autogenerated&gt;
  // ------------------------------------------------------------------------------
  </code></pre>
  
  <p>and this comment was generated for my code:</p>
  
  <pre><code>// WARNING
  //
  // This file has been generated automatically by MonoDevelop to store outlets and
  // actions made in the Xcode designer. If it is removed, they will be lost.
  // Manual changes to this file may not be handled correctly.
  //
  </code></pre>