• 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
Where to put global variables in Cocoa?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Follow-Ups:
    • Re: Where to put global variables in Cocoa?
      • From: Jesus De Meyer <email@hidden>
    • Re: Where to put global variables in Cocoa?
      • From: David Remahl <email@hidden>
  • Prev by Date: Re: OT: RadarWeb (bugreporter.apple.com)
  • Next by Date: Re: NSString category question
  • Previous by thread: Re: Cocoa friendly Quicktime APIs?
  • Next by thread: Re: Where to put global variables in Cocoa?
  • Index(es):
    • Date
    • Thread