title: How do I declare an array as a constant in Objective-c?
body: <p>The following code is giving me errors:</p>
  
  <pre><code>//  constants.h
  extern NSArray const *testArray;</code></pre>
  
  <pre><code>//  constants.m
  NSArray const *testArray = [NSArray arrayWithObjects:  @"foo", @"bar", nil];</code></pre>
  
  <p>The error I get is<br>
  <code>initializer element is not constant</code></p>
  
  <p>Or if I take away the pointer indicator (*) I get:<br>
   <code>statically allocated instance of Objective-C class 'NSArray'</code></p>