login about faq

I must avoid to upload any sqlite file (extension .sqlite) during SyncRemoteTree. The ObjectiveC callback implementation is in the following fragment but seems not working because the file is uploaded anyway. Did I make any error ?

Thanks Dario

  • (void)BeginUploadFile:(NSString )path skip:(BOOL )skip{ if ([path hasSuffix:@".sqlite"]) { BOOL needSkip = YES; skip = &needSkip; } }

asked Nov 21 '14 at 10:46

fulkron's gravatar image

fulkron
12


You didn't write your event handler correctly. It should be this:

(void)BeginUploadFile:(NSString )path skip:(BOOL *)skip
{ 
if ([path hasSuffix:@".sqlite"]) { *skip = YES;  } 
}

link

answered Nov 21 '14 at 11:19

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

edited Nov 21 '14 at 11:20

Thanks a lot !

Dario

link

answered Nov 21 '14 at 12:20

fulkron's gravatar image

fulkron
12

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×14
×2

Asked: Nov 21 '14 at 10:46

Seen: 607 times

Last updated: Nov 21 '14 at 12:20

powered by OSQA