wow, the syntax on that is awful, obviously not compiling, and I have no idea what you're trying to do with the code. what is comp4nat? why are you using a colon? so many other questions … one suggestion: either expose the global variable as a class method, or make it an instance variable
–
bshirleyAug 17 '11 at 2:27

Also note that this appears to be intended as an interface builder action method, but the signature doesn't comply so it won't work that way. If you want this to be invoked via an IB action, you should hang the first line to - (IBAction)globalVariable:(id)sender {
–
Tim DeanAug 17 '11 at 2:38

1

Tim that isn't necessary, IBActions can be either one argument (id)sender or zero arguments, either will work. Attaching sender is only normally needed if the method needs to incorporate logic dependant on the caller.
–
Alex GosselinAug 17 '11 at 2:49