venkatsan / ziparchive

Automatically exported from code.google.com/p/ziparchive
0 stars 0 forks source link

error in selectors calls #11

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
fixed here: http://github.com/soundevolution/ZipArchive/issues/#issue/4

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

GoogleCodeExporter commented 8 years ago
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