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

bkphat

macrumors newbie
Original poster
Jun 8, 2008
17
0
Suppose I had two views. Both are subviews to one main superview, but only one is shown at a time. I want to display the second subview based on what was clicked in the first.

Thus, how can I register a touchdown event in a subview and send a message to the superview in order to make it switch to the second subview. Essentially, is it possible to trigger methods in the super view from a subview? How do regular buttons do it? Aren't they just subviews themselves?

Also, is this the main mac programing board or are there bigger ones?

thanks much,

b
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.