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 > guessing that 'makeObjectsPerformSelector' fails to work because > scrambleState is not a method in UIView.
That's not how Objective-C works. You can send any message to any object. It may not respond well, but there's nothing filtering the send. My money is on: self.view is nil at the time this code executes. _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
