Hi Robert,
again, sorry to be a pain in the neck.
I have gotten a little further, I now have the following in the file which reads the country record in to the array. I have changed he name of the array from countries to countriesList to avoid a clash with another var.
Code:
// Create a new country object with the data from the database
Country *country = [[Country alloc] initWithName:aName countryName:aCountry capitalCity:aCapital
firstLang:aLanguageF secondLang:aLanguageS voltage:aVoltage freq:aFreq dialCode:aDialCode
currencyCode:aCurrencyCode currencyName:aCurrencyName currencySymbol:aCurrencySymbol
phonePolice:aPhonePolice phoneMedical:aPhoneMedical phoneFire:aPhoneFire countryFlag:aCountryFlag
countryKey:aCountryKey countryOutletType:aCountryOutlet
timeZone1:atimeZone1 timeZone2:atimeZone2 timeZone3:atimeZone3];
// Add the country object to the countries Array
[countries addObject:country];
iTravelv113AppDelegate *appDelegate = [[UIApplication sharedApplication] delegate];
appDelegate.countriesList = countries;
NSLog(@"The contents of countriesList = %@",appDelegate.countriesList);
[country autorelease];
The App complies without error but the output of the NSLog is:
2010-07-31 20:47:52.163 iTravelv113[2983:207] Database Successfully Opened
2010-07-31 20:47:52.165 iTravelv113[2983:207] The contents of countriesList = (
"<Country: 0x764a710>"
)
I am not to sure what this is telling me. Can you throw any light on the output.