title: Appending an array of images inside for loop - swift
body: <p>I might be missing something really stupid here but can someone tell me why this isn't working?
  nothing is getting added to the Array.</p>
  
  <pre><code>var goblin = NSImage[]()
  
  for (var i = 2; i == 50; i++) {
     var imageString = "/Users/Neil/Developer/iOS Apps/Resources/Goblin/\(i).png"
     var image = NSImage(contentsOfFile: imageString)
     goblin.append(image)
  }
  goblin[0]
  </code></pre>
  
  <p>my files are just simply called 2.png, 3.png up to 50.png.
  I'm just working in playground for now</p>