title: Handling several Realm Files
body: <p>I am new to Realm.io and have the following question :</p>
  
  <p>Working with several realm-files and accessing them in the same thread consecutively. Do all of these .realm-files have to have the same RLMObjects ?</p>
  
  <pre><code> NSString *Path_1 = @"....path1/realmfile_1.realm";
   NSString *Path_2 = @"....path2/realmfile_2.realm";
  
   RLMRealm *realm_1 = [RLMRealm realmWithPath:Path_1];
   RLMObject_1 *Object_1_ToAdd = [[RLMObject_1 alloc] init];
   [realm_1 beginWriteTransaction];
   Object_1_ToAdd.property_xy = @"bla1";
   [realm_1 commitWriteTransaction];
  
   RLMRealm *realm_2 = [RLMRealm realmWithPath:Path_2];
   RLMObject_2 *Object_2_ToAdd = [[RLMObject_2 alloc] init];
   [realm_2 beginWriteTransaction];
   Object_2_ToAdd.property_ab = @"bla2";
   [realm_2 commitWriteTransaction];
  </code></pre>
  
  <p>Do both .realm-files (i.e. realmfile_1.realm and realmfile_2.realm) need both RLMObjects (i.e. RLMObject_1 and RLMObject_2) ?</p>
  
  <p>Is it correct that the migration-block call (see below) creates all RLMObjects in all realmfiles and if yes - why ?????</p>
  
  <p>So far, all RLMObjects in my code are placed in all .realm-files - why ??? Or is this the way realm works ??</p>
  
  <p>Thanks on any help on this !</p>
  
  <p>SetSchemaVersion :</p>
  
  <pre><code>[RLMRealm setSchemaVersion:1 withMigrationBlock:^(RLMMigration *migration, NSUInteger oldSchemaVersion) { }
  </code></pre>
  
  <p>The following image shows the realm-browser screenshot (see below) of one realm-file (the other looks the same !). Is there a way that one file consinsts of RLMObject_1 and another file consists of RLMObject_2 ?? How would I have to set up the RLMObject definition classes ??</p>
  
  <p><img src="https://i.stack.imgur.com/X3nL0.jpg" alt="enter image description here"></p>