Re: Window Opened Notification?
Re: Window Opened Notification?
- Subject: Re: Window Opened Notification?
- From: dave <email@hidden>
- Date: Thu, 08 Sep 2016 14:00:04 +0100
> On 6 Sep 2016, at 01:29, Andy Lee <email@hidden> wrote:
>
> Dave, can you clarify whether you want is:
>
> 1. a notification when the frontmost window changes, or
> 2. a notification when some application opens a new window?
>
> If #1, observing these NSWorkspace properties looks like the way to go. If #2, bear in mind that applications can open windows that don't become the active window. For example, it is possible to open links in emails, tweets, etc., that cause the browser to open a new window in the background. The link might not open a new window at all, but rather a new tab in an existing browser window.
>
> I'm guessing you want #1, which is fortunately the easy (or easier) case. :) Just checking.
>
No, I’m after option 2!
All the Best
Dave
_______________________________________________
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