• 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
Re: Retaining 2D array values
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Retaining 2D array values


  • Subject: Re: Retaining 2D array values
  • From: Markus Hitter <email@hidden>
  • Date: Mon, 2 Jan 2006 23:03:56 +0100


Am 30.12.2005 um 22:02 schrieb jz:

1. How do I retain old values in a global array after a value change?

Copy them to some other variable before doing the change?


#import <Cocoa/Cocoa.h>
int gM[8][8];
@interface Controller : NSObject { }

Using global variables is considered a bad idea in the object oriented world. Objects with a lifetime similar to the app's lifetime would be better.



Markus

- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/




_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: Re: Agent Applications and launchd
  • Next by Date: Re: NSObjectController's removeObject just a stub?
  • Previous by thread: Re: [NSBundle mainBundle] safety?
  • Next by thread: Observing Collections
  • Index(es):
    • Date
    • Thread