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: Jason Foreman <email@hidden>
- Date: Thu, 26 Feb 2009 16:14:30 -0600
On Thu, Feb 26, 2009 at 3:37 PM, James Cicenia <email@hidden> wrote:
> Why doesn't this work on the device?
> Help this is causing me hours of grief with errors like these.
What errors? You haven't shown any, just code. Define "doesn't work"
and you'll get better help.
> if (sqlite3_open([path UTF8String], &database) == SQLITE_OK) {
Use -fileSystemRepresentation, not -UTF8String. Are you sure the file
exists where you think it does?
> tmp = [tmp stringByAppendingString:[self currentLatitude]];
> tmp = [tmp stringByAppendingString:@","];
> tmp = [tmp stringByAppendingString:[self currentLongitude]];
> tmp = [tmp stringByAppendingString:@") < "];
> tmp = [tmp stringByAppendingString:miles];
> tmp = [tmp stringByAppendingString:@" and state_abbr NOT NULL
> ;"];
-stringByAppendingFormat might clean this up.
Jason
_______________________________________________
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