• 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
how to centralize functionality more elegantly?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: how to centralize functionality more elegantly?
      • From: Ondra Cada <email@hidden>
    • Re: how to centralize functionality more elegantly?
      • From: Andreas Mayer <email@hidden>
  • Prev by Date: ftp volume mounting
  • Next by Date: Re: Issue with [NSImage drawAtPoint:fromRect:etc:...]
  • Previous by thread: Re: ftp volume mounting
  • Next by thread: Re: how to centralize functionality more elegantly?
  • Index(es):
    • Date
    • Thread