iphoneGuiExample pass data back and forth

i am working of the iphoneGuiExample.

i created a new function in the MyGuiView.mm but i not sure how to call it from testApp.cpp.

i know variables can be set like so
myGuiViewController.view.hidden = NO;

but calling a function myGuiViewController.view.newFunction(testInt) does not work

how would i do that?
thx

ok.
i figured it out.

in myGuiView.h

  
  
  
-(void)setRow:(NSInteger)newRow;  
@end  
  

in testApp.mm

  
  
[myGuiViewController setRow:currentStockRow];  
  

in myGuiView.mm

  
  
-(void)setRow:(NSInteger)newRow{  
	cout<<"set row"<<newRow<<endl;  
}  
  

1 Like