• 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
Notification when a modal event loop is activated?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Notification when a modal event loop is activated?


  • Subject: Notification when a modal event loop is activated?
  • From: Julian Barkway <email@hidden>
  • Date: Thu, 8 May 2003 21:13:50 +0200

I'm working on a sub-class of NSButton but I can't get it to show the dimmed image whenever my application enters a modal event loop, unlike the standard Cocoa controls. I am guessing that something somewhere sends a notification to indicate that the app is about to go modal. Now I've scoured the documentation and I can't find any references to such a thing. NSApplication is the obvious candidate but none of the available notifications appear to do what I want. I've already tried the NSWindow 'didBecomeKey' and 'didResignKey' notifications and, while these mostly do the trick, they do not distinguish between windows opened modally and those opened normally.

Can anybody point me in the right direction here?

Thanks for any help,
Julian Barkway
_______________________________________________
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: Tracking mouse activity in NSToolbar? (From: Jay Koutavas <email@hidden>)

  • Prev by Date: File not closing
  • Next by Date: Dock Icon Help
  • Previous by thread: Re: Tracking mouse activity in NSToolbar?
  • Next by thread: what's the topmost NSWindow level
  • Index(es):
    • Date
    • Thread