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
NSWindow and app unhiding
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
NSWindow and app unhiding
Subject
:
NSWindow and app unhiding
From: Guy English <
email@hidden
>
Date: Thu, 26 Jan 2006 22:22:02 -0500
Hi everyone,
I just worked something out that left me scratching my head for a minute so here it is for the archives ...
I have a main window and, as user feedback for things my app does, I create smaller borderless windows. What was happening was that if I'd Hide my application then and something would cause one of my notification windows to popup the main window would Unhide. Which was really a crummy experience.
NSWindow returns YES from canHide by default so when I created my notification window and called orderFront: (or orderFrontRegardless) on it the whole app would have to unhide to honor the request. Called [window setCanHide: NO] on the notification window and then ordering it front got around the problem - the main window remains hidden while the little windows do their thing. It's not an obvious (or documented) side effect of setCanHide so I thought I'd post it here in case anyone runs into the same thing I did.
Take care, Guy
(and for the record, I do support Growl for notifications, what I'm doing is specialized and not strictly a notification)
_______________________________________________
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
Prev by Date:
(no subject)
Next by Date:
Re: Fairly newbie question on strings
Previous by thread:
Re: Apple Finder team is hiring
Next by thread:
Getting control IDs at initialization
Index(es):
Date
Thread