how to centralize functionality more elegantly?
how to centralize functionality more elegantly?
- Subject: how to centralize functionality more elegantly?
- From: Matt Neuburg <email@hidden>
- Date: Thu, 5 Sep 2002 10:14:20 -0700
I have a few central (i.e. application-wide) functions, so I've put them in
my NSApp delegate because that's appropriate and it's an object to which
any other object can get a reference. In order to call these functions I
typecast (I don't have to, but it's nice to eliminate warnings). So I have
a lot of stuff like this:
[(MainController*) [NSApp delegate] showStatus: @"You cannot do that."];
Is there a more elegant way to be doing this? m.
--
matt neuburg, phd = email@hidden,
http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart.
http://www.tidbits.com/
_______________________________________________
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.