Perhaps my approach is wrong. Looking for advise. 

So I'd like to define a Class called Preference.

In main.m I'd like to create an object called myPreferences before the code line

return NSApplicationMain(argc, (const char**)); is run;

I assume the object myPreferences will persist the life of the program. 

So how can I make the ID of myPreferences known to all objects in the program?

Is this even possible?

OK! So I'm trying to create an object with global scope so all other objects 
can get and put data in it.

AND OK! Its true I'm not yet a mature Objective-C programmer.  Ya know one that 
doesn't know what I can't do.

YT
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to