title: How to initialize an Objective-C struct in constructor?
body: <p>I´m using a struct on Objective-C to store some data, something like this:</p>
  <pre><code>@interface Interface : NSObject
  {
      // my Data
      struct Data
      {
          __unsafe_unretained BOOL isInit;
          __unsafe_unretained BOOL isRegister;
          __unsafe_unretained NSString* myValue;
          
         // Data() : isInit(false), isRegister(false), myValue(@&quot;mYv4lue&quot;) {} // Constructor doesnt work
      };
  
      struct Data myData;  // Create Struct
  }
  </code></pre>
  <p>But I can't compile with a constructor. I want the values take some default value when I create the struct.</p>
  <p>How can I do this?</p>