objective c - __strong or __weak (or something else) for parameter when overrideing -isEqual:? -


I am overriding - (BOOL) is aqual: (id) object in custom class

Of the four options, which are __ weak , __ strong , __autorerising , and __secure / Reverse , which should be used for the isEqual: method for the signature?

I am thinking that the problem is, since I am trying to add one of my class to an NSMutableDictionary is an example, I have written the code Getting EXC_BAD_ACCESS (code = 2, address = 0x10) .

In other words, on the line on which the debugger finds EXC_BAD_ACCESS :

  - (BOOL) is the aqual (id __strong) object { / Code>  

Any method is executed before the body.

The correct answer was "If you are getting enough access, you can read or write that area Trying what you do not have what you think is what's in it. ", Per @Dustin Rowland comments

Comments