title: Error (sqlite3*) database object in array
body: <p>Good Day All!</p>
  
  <p>I have a problem regarding with inserting/storing an sqlite3 object in array. I have this method in implementation:</p>
  
  <pre><code>-(void)addDatabase:(sqlite3*)database databaseName:(NSString*)language inLocation:(NSString*)locationPath {
      // add database to array of databases
      if ([language length] &gt; 0) {
          [[self.openDatabases objectForKey:@"object"] addObject:database];
          [[self.openDatabases objectForKey:@"language"] addObject:language];
          [[self.openDatabases objectForKey:@"location"] addObject:locationPath];
      }
  
      //TODO: add db
  }
  </code></pre>
  
  <p>In here: <code>[[self.openDatabases objectForKey:@"object"] addObject:database];</code> I always have an error. Its like it not accept an sqlite3 object.</p>
  
  <p>This is my declaration of that object:</p>
  
  <pre><code>ATIDatabase.h
  @property sqlite3 *database;
  
  ATIDatabase.m
  @synthesize database = _database;
  </code></pre>
  
  <p>I'm stuck with this. I'm new in IOS Programming.</p>
  
  <p>Thank you.</p>