soulslicer / QueueFTP

The easiest way to upload multiple large files from iOS to a server in the background
11 stars 11 forks source link

Warnings while compiling #3

Open fgeissler opened 11 years ago

fgeissler commented 11 years ago

Hi,

I love your work and really like to use it in one of my projects.

Now I'm wondering about your method declaration style, and indeed the compiler too.

As example, in Class QueueFTPSettings you declare a method like:

-(id)init:(NSString_)phpPath :(NSString_)ftpPath :(NSString_)username :(NSString_)password;
The more usual way, as far as I know, would be:
-(id)init:(NSString_)phpPath *_ftpPath**:(NSString_)ftpPath *_userName**:(NSString_)username *_password*_:(NSString_)password
Am I missing something? Please correct me if I'm wrong. CU Frank
soulslicer commented 11 years ago

No you are not. This is the correct way of declaring. Feel free to change my code. I wrote this code for "quick use" without heeding the declaration formats as I desperately needed ftp upload capabilities. I was also NEW to objective-C at the time

soulslicer commented 11 years ago

Also, the PHP script returns "strings" which are parsed by my code in an ugly manner. Basically..once again feel free to use your own format.

Personally, for file upload, I'd recommend HTTP Post rather than FTP if your file size is not that big.