On Thu, Feb 26, 2009 at 3:37 PM, James Cicenia <ja...@jimijon.com> 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to