Finding out about new windows.
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