• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
makeObjectsPerformSelector on a sub class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

makeObjectsPerformSelector on a sub class


  • Subject: makeObjectsPerformSelector on a sub class
  • From: Pascal Harris <email@hidden>
  • Date: Wed, 21 Mar 2012 14:56:05 +0000

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:

@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] 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. Question is, what do I need to do in order to ensure that this code gets called?

I'm hoping that you can help me out, and regards,

Pascal


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: makeObjectsPerformSelector on a sub class
      • From: James Bucanek <email@hidden>
    • Re: makeObjectsPerformSelector on a sub class
      • From: Quincey Morris <email@hidden>
    • Re: makeObjectsPerformSelector on a sub class
      • From: Nick Zitzmann <email@hidden>
    • Re: makeObjectsPerformSelector on a sub class
      • From: Jens Alfke <email@hidden>
    • Re: makeObjectsPerformSelector on a sub class
      • From: Seth Willits <email@hidden>
  • Prev by Date: Re: How to get max size of view according to constraints?
  • Next by Date: Re: Installing & running Xcode
  • Previous by thread: Re: asynchronous nsurlconnection in nsoperation
  • Next by thread: Re: makeObjectsPerformSelector on a sub class
  • Index(es):
    • Date
    • Thread