Closed LeenAlShenibr closed 10 years ago
I found out what the problem is, it turns out that the pointer delegate is destroyed during the download process. I changed it's property from (weak) to (strong) and now it works.
In BRRequest.h:
@property (weak) id <BRRequestDelegate> delegate;
//Change the above to the below
@property (strong) id <BRRequestDelegate> delegate;
I've implemented an FTPHelper class, that does the FTP communication for me using BlackRaccoon, however, all the delegate/required methods are not called. I'm trying to download a database file from my FTP server, it's not storing though, it did download it, since the data isn't communicated back requestCompleted. I'm sure that my FTP server is working, and that the data is being transferred because I placed print statements in BRStreamInfo.m. In my understanding, when the stream is complete it should call requestCompleted according to the following snippet
This is my FTP helper method, FTP request information are stored as constants:
The header file:
Any help regarding this issue is greatly appreciated.