title: No visible @interface for NSURL declares the selector componentsseparatedbystring
body: <p>The NSArray declaration brings up an error because "no visible @interface for NSURL declares the selector componentsseparatedbytring". </p>
  
  <pre><code>NSURL *MyURL = [[NSBundle mainBundle]
                   URLForResource: @"artList" withExtension:@"txt"];
  NSArray *lines = [MyURL componentsSeparatedByString:@"\n"]; // each line, adjust character for line endings
  
  for (int i = 0; i &lt; 10; i++) {
      NSString *line;
      //in lines;
      NSLog(@"%@", [NSString stringWithFormat:@"line: %@", line]);
      _wordDefBox.text = [NSString stringWithFormat:@"%@%@",_wordDefBox.text, lines];
  }
  </code></pre>