Hey guys, I have another problem this time now it crashes with NSNotificationCenter, but a few days ago I had added the notification, so he had worked properly. I had added some code in the middle with nothing to do with ...
I have about 10x10 tiles as soon as it is made, each tile automatically adds itself as a supervisor: / P>
[[NSNotificationCenter defaultCenter] addObserver: Self selector: @sillector (player included) Name: @ "Tastonaut" object: zero];
And in my player category, a leap is eliminated, I post a notification with the following code:
if (self .postNotifications == Yes) {// Also post notification for all tiles. [[NSNotificationCenter defaultCenter] postNotificationName: @ "Testonot" object: Self]; }
If I use NSLog in tiles, then I can see that about 3 or 4 tile information is received and after that, the application crashes with an EXC_BAD_ACCESS It is said that objc_msgSend () selector name: player is included
. But why do not I get it, I think this works before it crashes before. What's my error here? Can you help me Sandro
Edit: Is there a problem, because the notification gets about 100 items?
Your tile object is distributed, but still with the Notification Center to receive notifications Try adding a breakpoint on the tile-key-deluxe method if it is not expected.
Comments
Post a Comment