> On 6 Sep 2016, at 01:29, Andy Lee <[email protected]> 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 protected]) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
