• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Why doesn't this work on my device?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Why doesn't this work on my device?
      • From: James Cicenia <email@hidden>
References: 
 >Why doesn't this work on my device? (From: James Cicenia <email@hidden>)

  • Prev by Date: Re: One IBAction, multiple results from multiple methods
  • Next by Date: Re: Compile errors
  • Previous by thread: Why doesn't this work on my device?
  • Next by thread: Re: Why doesn't this work on my device?
  • Index(es):
    • Date
    • Thread