Open realm database files


I am working on my mobile app and with that I have been using Realm Database to store the user data. Further I have made a application for mac that is supposed to be able to open a realm file and display the user data from the file (Yes I know I can use Realm Studio for this, but I want to be able to develop my own application to add some features that my client needs). Does anyone know how I can open a realmfile on an mac app and make the realm code to use data from that file to fill out my tableview?