Re: makeObjectsPerformSelector on a sub class

2012-03-22 Thread T.J. Usiyan
Another option would be a container holding just the tiles. On Wed, Mar 21, 2012 at 5:06 PM, James Bucanek wrote: > Pascal Harris > > wrote (Wednesday, March 21, 2012 7:56 AM -): > > > Now I want to scramble the state of each of t

Re: makeObjectsPerformSelector on a sub class

2012-03-22 Thread T.J. Usiyan
Does it work if you use a for in loop? TJ On Wed, Mar 21, 2012 at 4:28 PM, Quincey Morris < quinceymor...@rivergatesoftware.com> wrote: > On Mar 21, 2012, at 13:23 , Quincey Morris wrote: > > > One thing to check: if your 'scrambleState' actually has a parameter: > > > > - (void) scrambleSt

Re: makeObjectsPerformSelector on a sub class

2012-03-21 Thread Gregory Weston
Pascal Harris wrote: > Now I want to scramble the state of each of the tiles. In the game > controller, I'm using the following code: > > [[self.view subviews] makeObjectsPerformSelector:@selector(scrambleState)]; > > I've put a breakpoint in scrambleState - and it never gets called. I'm > gu

Re: makeObjectsPerformSelector on a sub class

2012-03-21 Thread James Bucanek
Pascal Harris wrote (Wednesday, March 21, 2012 7:56 AM -): Now I want to scramble the state of each of the tiles. In the game controller, I'm using the following code: [[self.view subviews] makeObjectsPerformSelector:@selector(scrambleState)]; I've put

Re: makeObjectsPerformSelector on a sub class

2012-03-21 Thread Greg Parker
On Mar 21, 2012, at 1:23 PM, Quincey Morris wrote: > One thing to check: if your 'scrambleState' actually has a parameter: > > - (void) scrambleState: … > > Then you need '@selector(scrambleState:)', not '@selector(scrambleState)'. > It's an easy thing to overlook. Of course, if that we

Re: makeObjectsPerformSelector on a sub class

2012-03-21 Thread Quincey Morris
On Mar 21, 2012, at 13:23 , Quincey Morris wrote: > One thing to check: if your 'scrambleState' actually has a parameter: > > - (void) scrambleState: … > > Then you need '@selector(scrambleState:)', not '@selector(scrambleState)'. > It's an easy thing to overlook. Er, pretend you never s

Re: makeObjectsPerformSelector on a sub class

2012-03-21 Thread Quincey Morris
On Mar 21, 2012, at 07:56 , Pascal Harris wrote: > @interface gameTile : UIView > > And I've successfully drawn my tiles onto the iOS Simulator screen. > > Now I want to scramble the state of each of the tiles. In the game > controller, I'm using the following code: > > [[self.view subviews]

Re: makeObjectsPerformSelector on a sub class

2012-03-21 Thread Nick Zitzmann
On Mar 21, 2012, at 8:56 AM, Pascal Harris wrote: > I've put a breakpoint in scrambleState - and it never gets called. I'm > guessing that 'makeObjectsPerformSelector' fails to work because > scrambleState is not a method in UIView. Question is, what do I need to do in > order to ensure that t

Re: makeObjectsPerformSelector on a sub class

2012-03-21 Thread Jens Alfke
On Mar 21, 2012, at 7:56 AM, Pascal Harris wrote: > [[self.view subviews] makeObjectsPerformSelector:@selector(scrambleState)]; > > I've put a breakpoint in scrambleState - and it never gets called. I'm > guessing that 'makeObjectsPerformSelector' fails to work because > scrambleState is not a

Re: makeObjectsPerformSelector on a sub class

2012-03-21 Thread Seth Willits
On Mar 21, 2012, at 7:56 AM, Pascal Harris wrote: > Now I want to scramble the state of each of the tiles. In the game > controller, I'm using the following code: > > [[self.view subviews] makeObjectsPerformSelector:@selector(scrambleState)]; > > I've put a breakpoint in scrambleState - and it

makeObjectsPerformSelector on a sub class

2012-03-21 Thread Pascal Harris
I'm doing a little development on iOS (but hopefully this will apply equally to Mac OS X, so fingers crossed that someone will be able to help me out here), and I'm having a little bother with makeObjectsPerformSelector. I've created a custom view (which will be a tile in my game) as follows: @