How to integrate DBAccess Framework in another framework (iOS)
<p>I write one application <strong>A</strong> written in objective-c which use my another framework <strong>B</strong> which is also written in objective-c.
The framework <strong>B</strong> has some database related operations. To perform those operations I try to use DBAccess ORM (<a href="http://www.db-access.org/" rel="nofollow">http://www.db-access.org/</a>).</p>

<ol>
<li><p>In <strong>B</strong> I have created a model class which base class is DBObject.</p>

<p><strong>@interface SettingsModel : DBObject</strong></p></li>
<li>AppDelegate of application <strong>A</strong> delegates the DBDelegate protocol,
in "<strong>-(BOOL) application: didFinishLaunchingWithOptions:</strong>" sets the delegate
"<strong>[DBAccess setDelegate:self];</strong>"</li>
<li>There is a class <strong>EnvironmentManager</strong> in <strong>B</strong>, which sets the database name in its <strong>init</strong> method.
<strong>[DBAccess openDatabaseNamed:@"dbname"];</strong></li>
<li>An object of EnvironmentManager is created from <strong>A</strong>'s ViewController's <strong>viewDidLoad</strong> method.</li>
<li>Now I try to save and retrieve data from <strong>A</strong>'s viewController methods.</li>
</ol>

<p>When I run the application <strong>A</strong> with both save and retrieve methods opened, retrieve method give me the saved data.
But if I comment the save data section and run A then no previous data can be retrieved.</p>

<ol>
<li>Is it possible to use DBAccess framework from another framework?</li>
<li>If possible then Please help me to figure-out the problem from my above description. </li>
</ol>

<p>EDIT: </p>

<p>I have tried some others options, which is discussed @Adrian_H answers comment section.
I have got the same path in both <strong>A</strong> and <strong>B</strong> using </p>

<pre><code>NSURL *applicationCachesDirectory = [[[NSFileManager defaultManager] URLsForDirectory:NSCachesDirectory inDomains:NSUserDomainMask] lastObject];
NSLog(@"%@",[applicationCachesDirectory path]);
</code></pre>