On Fri, Dec 25, 2009 at 10:52 PM, Michael Craig <[email protected]> wrote: > #import <Cocoa/Cocoa.h> > > static NSArray *suitArray;
I doubt you really mean this. When you put this in your header file, every file that includes "Card.h" has its own, separate copy of suitArray. If you want to export a shared global into every file, then Card.h should have: extern NSArray *suitArray; and Card.m: NSArray *suitArray; If you only want one copy, only visible from your implementation file, then put this in Card.m: static NSArray *suitArray; _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
