I was able to get both working by adding the following in the UDT sample:
1 - Add this line in [application didFinishLaunchingWithOptions] to add the target
[qUtils addTargetName:@"Stones & Chips" atPath:@"StonesAndChips.xml"];
2 - Add StonesAndChips.dat & .xml files to Resources/Assets folder
3 - Add the following to initUserDefinedTargets in UDTQCARutils.mm
BOOL haveLoadedOneDataSet = NO;
// Load all the requested datasets
for (DataSetItem *aDataSet in targetsList)
{
if (aDataSet.path != nil)
{
aDataSet.dataSet = [self loadDataSet:aDataSet.path];
if (haveLoadedOneDataSet == NO)
{
if (aDataSet.dataSet != nil)
{
// activate the first one in the list
[self activateDataSet:aDataSet.dataSet];
haveLoadedOneDataSet = YES;
}
}
}
}
// Check that we've loaded at least one target
if (!haveLoadedOneDataSet)
{
NSLog(@"QCARutils: Failed to load any target");
appStatus = APPSTATUS_ERROR;
errorCode = QCAR_ERRCODE_LOAD_TARGET;
}
Build, and run, and it works :)
N
how can i merge this two differnt codes to geather?
By analysing functionality specific to each and then wiring together.
My suggestion would be to start with UDT and add IT after i.e. add the simple one to the more complex one.
N