Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

robijnix

macrumors newbie
Original poster
Nov 6, 2010
2
0
Hello,

I just started programming in cocoa and I'm trying to make a very simple game in which the user has to press a moving button
but I can't find anyway to change the position of a button.
So i wonder, is there a way? and if there is, what it is?
 
thanks man:D
that solved it.

now i just have one more question:
i notice that this cocoa thing is really event driven. how can i do something continously.
in my case: how can i make the origin.x and origin.y change automaticly all the time, whitout something like a button press? i already tried to look for a timers object or something but could find one.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.