Re: Why doesn't this work on my device?
Re: Why doesn't this work on my device?
- Subject: Re: Why doesn't this work on my device?
- From: James Cicenia <email@hidden>
- Date: Thu, 26 Feb 2009 18:43:11 -0600
OK -
Let me bother you one time more.
I have found, the offending code, based upon log files etc.
currentStates = [[NSMutableArray alloc] init];
self.currentStates = [self statesWithinMiles:currentMiles];
currentStates is not holding up in the device. It is somehow or
somewhere getting released.
I have searched the project and I am not releasing it anywhere. But,
come the device, it
loses itself.
And then downstream methods that use this array bomb out.
?
James
On Feb 26, 2009, at 5:32 PM, Bill Bumgarner wrote:
On Feb 26, 2009, at 3:29 PM, James Cicenia wrote:
hmmm...
Well I am WebObjects guy, so, I know java pretty darn well and it
is fast on the server.
I love developing for the iphone. And I find objective-c to be
really nice with this one
major hole in my knowledge.
Anyway, I do load something from a preferences file. So how do I
debug that on the phone?
How do you set up the registration defaults in the first place? If
you are using NSUserDefaults, you should be using -registerDefaults:.
Now, if you are talking about loading a file manually, do you:
- check to see if the file exists (NSFileManager's fileExistsAtPath:)?
- check to see if reading the file worked
(dictionaryWithContentsOfFile: returned something)?
- check to see if it contains what you expect?
b.bum
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden