Jump to content

  • Log In with Google      Sign In   
  • Create Account


ApochPiQ

Member Since 17 Jul 2002
Offline Last Active Yesterday, 07:20 PM
*****

Posts I've Made

In Topic: This singleton keeps crashing.

24 July 2014 - 09:22 PM

Not sure why you think this is in any way related to your singleton. It's most likely a problem in Objective-C code, specifically poking an object that doesn't exist (either null or has been released).


Also that callstack looks incomplete, although I honestly am not familiar enough with Xcode to know how to get the whole thing.

In Topic: This singleton keeps crashing.

24 July 2014 - 07:31 PM

Post the complete call stack and indicate where your code begins in that stack.

In Topic: This singleton keeps crashing.

24 July 2014 - 05:28 PM

Mandatory reading.

In Topic: Sending and receiving UDP packets to character status need be encrypted?

23 July 2014 - 04:16 PM

rip-off is correct. You should profile your code. Guessing is worse than useless, it can be actively damaging - whether it's your guesses or ours.

In Topic: little feedback with UI and callbacks

22 July 2014 - 04:48 PM

One suggestion: instead of just passing the engine object to the callback, pass the engine object and the relevant control object.

So e.g.:

def diff_up(self, clickedButton, engine):
    engine.game_settings.difficulty_up()
    clickedButton.set_text('# ' + engine.game_settings.get_difficulty())

PARTNERS