cocoa - NSObject may not respond to method -
There are some questions about this, but none of them helps me. I can not understand that things are "a class system What is it about calling? "
I put an NSObject in the interface builder. I applied it to sub-squares I added the object to a table view. I applied the methods to populate the table view. To populate the table view, I used an array declared within the object. I tried to add some random objects. All the methods are working perfectly I have implemented a "add some" method which takes a logic and adds an object to the array, then it reloads the table view. No warning
I add an outlet to the APDEGet class. This outlet refers to NSobage, which cares about the table view. But, when calling ... ... I have a warning: No response to 'NSObject' Maybe some add '[...] That method is never said that I can not add anything. Is there any concept that I do not have about things like messaging, function calls and Catching me Thank you for your help.
You need to declare your example type the type of your NSObject subclass.
The runtime sees that it is an NSObject, which does not have the method defined on it, but if you change the type in the type of your subclass that has the defined method, then it will work fine. should do.
Comments
Post a Comment