• 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: subclassing a window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: subclassing a window


  • Subject: Re: subclassing a window
  • From: mmalcolm crawford <email@hidden>
  • Date: Mon, 6 Feb 2006 18:03:15 -0800


On Feb 6, 2006, at 5:48 PM, John C. Randolph wrote:

This little sample creates a window and the application
terminates when the window is closed.
I think it bears mentioning, that subclassing NSWindow, and writing our own main() routine are things that we wouldn't often do when using the Cocoa framework.

It also bears mentioning that modifying window-closing behaviour is the one of the canonical examples of the role of delegation -- see <http://developer.apple.com/documentation/Cocoa/Conceptual/ CommunicateWithObjects/Articles/Delegates.html>. It is typically not the responsibility of the window to manage the state information that determines whether or not it should close.


mmalc

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >RE: subclassing a window (From: "Lars Elden" <email@hidden>)
 >Re: subclassing a window (From: "John C. Randolph" <email@hidden>)

  • Prev by Date: Re: Fastest way to predict bounding box for a string
  • Next by Date: Duplicate Address Book change notifications? (kABDatabaseChangedExternallyNotification)
  • Previous by thread: Re: subclassing a window
  • Next by thread: Re: subclassing a window
  • Index(es):
    • Date
    • Thread