cocoa - Objective-C newbie question re: global instances -


is there way make 1 (1) instance of object , share instance between different files?

for instance, have class "a" (created in filea.m), , create instance of in different file (fileb.m). now, want use same instance created in fileb.m in several other files (filec.m , filed.m) can share ivar's (such database).

how do that?

you want class a singleton. here's great guide out that.


Comments