• 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
Finding out about new windows.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Finding out about new windows.


  • Subject: Finding out about new windows.
  • From: Paul FitzGerald <email@hidden>
  • Date: Tue, 1 Apr 2008 15:46:30 -0700

I have a need to find a way for my application to find out when new windows are opened within it.
The specific case I'm currently looking at is when the print dialog is opened and the user chooses "Save as PDF...". This action will open a file save dialog and I need to know when this happens. I don't see any events that can notify me that this window has opened.
Of course what I really want to know is when a window is supposed to become visible.


OK, I won't leave you wondering...
I'm working on a kiosk application and my main window is far above the print dialogs so they don't display. If I can know when they are to display I can grab them and pull them forward. Currently when my main window delegate received a windowDidResignMain: message I go look for "lost" windows and pul them forward. This gets me the print dialog but since I am no longer active any secondary dialogs get left behind my main window. Thus locking up the machine (time to reboot).


I'm using the method outlined in this link to make my application very- front-most...
http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaDrawingGuide/AdvancedDrawing/chapter_9_section_4.html


Paul FitzGerald
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Finding out about new windows.
      • From: "Kyle Sluder" <email@hidden>
  • Prev by Date: DataSource for NSTableView with ButtonCell
  • Next by Date: Re: Need for a creator code?
  • Previous by thread: RE: DataSource for NSTableView with ButtonCell
  • Next by thread: Re: Finding out about new windows.
  • Index(es):
    • Date
    • Thread