• 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: "Did" vs. "Will" delegates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "Did" vs. "Will" delegates


  • Subject: Re: "Did" vs. "Will" delegates
  • From: Jonathan Jackel <email@hidden>
  • Date: Sun, 30 Nov 2003 19:58:48 -0500

"Will" is sent just before the change. The delegate gets a chance to say "Don't do that thing you were about to do," or "Do that thing in this special way" or "Do something else first."

"DId" is sent just after the change.

Jonathan

On Nov 30, 2003, at 6:53 PM, dp wrote:

Can someone explain the difference between implementing windowDidMiniaturize and windowWillMiniaturize in my delegate class? It seems that the later is called, but not the former?

thanks
dp



On Nov 26, 2003, at 1:59 PM, Jonathan E. Jackel wrote:

Have a look at the delegate methods for NSWindow. Implement
windowDidMiniaturize: or windowWillMiniaturize: in the delegate.

Jonathan

-----Original Message-----
From: email@hidden
[mailto:email@hidden]On Behalf Of Chad Harrison
Sent: Wednesday, November 26, 2003 12:59 PM
To: Cocoa List
Subject: subclass NSWindow


How do I detect when my app's main window gets miniaturized? I want to
update some menu items as soon as the window is miniaturized - do I
need to subclass NSWindow and make that the first responder for my
window or something?
_______________________________________________
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.
_______________________________________________
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.
_______________________________________________
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.
_______________________________________________
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.

References: 
 >RE: subclass NSWindow (From: "Jonathan E. Jackel" <email@hidden>)
 >"Did" vs. "Will" delegates (From: dp <email@hidden>)

  • Prev by Date: Re: newbie memory question
  • Next by Date: Re: newbie memory question
  • Previous by thread: "Did" vs. "Will" delegates
  • Next by thread: NSImageView and TGA image format.
  • Index(es):
    • Date
    • Thread