• 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
Re: IntraApp Communication....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IntraApp Communication....


  • Subject: Re: IntraApp Communication....
  • From: James DiPalma <email@hidden>
  • Date: Sat, 28 Sep 2002 15:57:39 -0400

From: Jonathan Jackel <email@hidden>

There is a heading in the NSApplication docs entitled "Subclassing
NSApplication." It says, in part, "The only reason to subclass
NSApplication is if you need to provide your own special response to
messages that are routinely sent to NSApp. (Even then, NSApp's delegate is
often given a chance to respond to such messages, so it's more appropriate
to implement the delegate methods.)"

This documentation is suggesting a good habit for object oriented programming while pointed out some Cocoa specific functionality. Classes should be subclassed to modify some behavior that they actually do. NSApplication delegates many responsibilities that a subclass of NSApplication may consider doing. Many Cocoa objects (including NSApplication) don't require subclasses for certain behavior changes.

This documentation is not recommending against subclassing NSApplication as much as it is recommending that developers understand how Cocoa is designed to do things before subclassing to change how a Cocoa Class does something.


-jim
_______________________________________________
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.

  • Prev by Date: Re: private Frameworks - how
  • Next by Date: Bundle compile problems
  • Previous by thread: Re: IntraApp communication....
  • Next by thread: TableView Jaguar Compile Problem
  • Index(es):
    • Date
    • Thread