Where to put global variables in Cocoa?
Where to put global variables in Cocoa?
- Subject: Where to put global variables in Cocoa?
- From: "Peter Karlsson" <email@hidden>
- Date: Thu, 06 Mar 2003 08:54:16 +0000
Hi dear list!
I have a implementation file called Controller.m and from that file I call a
regular C function like this:
- (IBAction)resetAction:(id)sender
{
midireset();
}
I also have my global variables in the same file, don't know if that is
right or wrong. The midireset function is located in another file called
midireset.m But it seems that the function does not see my global variables.
So the queston is:
Where is the right place to put my global variables in Cocoa?
Best regards Peter
_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.