title: can I put an objective-C selector in a struct?
body: <p>I was wanting to associate a set of rectangles with corresponding actions, so I tried to do</p>
  
  <pre><code>struct menuActions {
      CGRect rect;
      SEL action;
  };
  
  struct menuActions someMenuRects[] = {
      { { { 0, 0 }, {320, 60 } }, @selector(doSomething) },
      { { { 0, 60}, {320, 50 } }, @selector(doSomethingElse) },
  };
  </code></pre>
  
  <p>but I get the error "initializer element is not constant".  Is there some reason that what I'm trying to do isn't allowed in general, or isn't allowed at global scope, or do I have some kind of minor punctuation mistake?</p>