liuyong/ziparchive

error in selectors calls

Opened this issue · 2 comments

What steps will reproduce the problem?

simply placea brakpoint on selectors / add NSLog

What is the expected output? What do you see instead?
selectors are never called.



    if( _delegate && [_delegate respondsToSelector:@selector(ErrorMessage)] )
        [_delegate ErrorMessage:msg];



    if( _delegate && [_delegate respondsToSelector:@selector(OverWriteOperation)] )
        return [_delegate OverWriteOperation:file];


You missed a semicolon, so selector are never called.

it must be:



    if( _delegate && [_delegate respondsToSelector:@selector(ErrorMessage:)] )
        [_delegate ErrorMessage:msg];



    if( _delegate && [_delegate respondsToSelector:@selector(OverWriteOperation:)] )
        return [_delegate OverWriteOperation:file];

I added a semicolon and it works VERY nice.

Hope this can help.


Original issue reported on code.google.com by salcazzo...@gmail.com on 25 Aug 2010 at 5:38

fixed here: http://github.com/soundevolution/ZipArchive/issues/#issue/4

Original comment by matt.con...@gmail.com on 26 Sep 2010 at 8:06

Fix pending.  Also, I will get in contact with the github.com/soundevolution 
admin!

Original comment by elinc...@hachisoft.com on 15 Feb 2011 at 8:06

  • Changed state: Started
  • Added labels: Priority-High
  • Removed labels: Priority-Medium