Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 07-31-2010, 02:56 PM   #15 (permalink)
dcjones
Registered Member
 
Join Date: Mar 2010
Location: Warwickshire, United Kingdom
Posts: 163
dcjones is on a distinguished road
Default

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.
__________________
Many thanks, keep safe and well.



Dereck
dcjones is offline   Reply With Quote
 

» Advertisements
» Online Users: 369
10 members and 359 guests
Abimennicks, AyClass, Domele, esoteric, ipodphone, jakedukes3003, lancetusing, thephotographer, wenelecon, Wharazhasri
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,571
Threads: 94,081
Posts: 402,751
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Abimennicks
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 11:42 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.