Question for code monkey?

iDeveloperziDeveloperz Member Posts: 1,169
edited November -1 in Working with GS (Mac)
speaking for all game salad developers we can not see the actual code for our games.

I was just wondering are all of our actors and rules released every time a view is closed?

Comments

  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    Not sure what you mean.
  • rebumprebump Member Posts: 1,058
    Maybe he's wondering if upon leaving a "scene" in GS if he should be manually destroying all actors himself or if the GS engine will cascade down killing all the various views (i.e. actor graphic elements) involved in the scene for him automatically. I'm assuming you do.
  • design219design219 Member Posts: 2,273
    Whoa, never even considered that as a possibility. I would like to hear the answer to that.
  • iDeveloperziDeveloperz Member Posts: 1,169
    Basically in programming you must now add this...

    - (void)viewDidUnload {
    [view release];
    [Button release];
    [Textfield release];
    }

    (Basically you have to release all of the Outlets & Actions).

    This helps preventing memory leaks.
Sign In or Register to comment.