Bug 22368 - NSApplicationActivationOptions.ActivateIgnoringOtherApps missing
Summary: NSApplicationActivationOptions.ActivateIgnoringOtherApps missing
Alias: None
Product: Xamarin.Mac
Classification: Desktop
Component: Library (Xamarin.Mac.dll) ()
Version: Master
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Chris Hamons
Depends on:
Reported: 2014-08-26 13:53 UTC by Rodrigo Moya
Modified: 2014-12-05 13:42 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Rodrigo Moya 2014-08-26 13:53:43 UTC
Only .ActivateAllWindows and .ActivateIgnoringOtherWindows are bound, so .ActivateIgnoringOtherApps is missing
Comment 1 Ram Chandra 2014-08-28 06:44:49 UTC
I have tried this issue and I am also getting the same behavior.

I have checked the definition of "NSApplicationActivationOptions" enum in assembly browser and observed that "ActivateIgnoringOtherApps" is missing from the "NSApplicationActivationOptions" enum.

I have also checked the same on apple doc and observe that "ActivateIgnoringOtherApps" is exist on apple doc.

Screencast: http://www.screencast.com/t/CNqyS0bg4

Environment Info:

=== Xamarin Studio ===

Version 5.5 (build 5)
Installation UUID: 6ea47b0d-1852-4aaf-808d-373ff0a5002b
	Mono 3.8.0 ((detached/356dbc5)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 308109010

=== Apple Developer Tools ===

Xcode 5.1 (5084)
Build 5B130a

=== Xamarin.Mac ===

Version: (Trial Edition)

=== Xamarin.Android ===

Version: 4.16.0 (Trial Edition)
Android SDK: /Users/jatin66/Desktop/Backup/android-sdk-macosx
	Supported Android versions:
		1.6   (API level 4)
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.0   (API level 11)
		3.1   (API level 12)
		3.2   (API level 13)
		4.0   (API level 14)
		4.0.3 (API level 15)
		4.1   (API level 16)
		4.2   (API level 17)
		4.3   (API level 18)
		4.4   (API level 19)
Java SDK: /usr
java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

=== Xamarin.iOS ===

Version: (Trial Edition)
Hash: 77efa3f
Build date: 2014-08-26 07:59:55-0400

=== Build Information ===

Release ID: 505000005
Git revision: cca1f2688edeb19af922235748071b2a56b5cbd7
Build date: 2014-08-27 09:15:58-04
Xamarin addins: 1dbb61cb4693e2b19905655d824fe384f32eef1d

=== Operating System ===

Mac OS X 10.9.3
Darwin Jatin66s-iMac.local 13.2.0 Darwin Kernel Version 13.2.0
    Thu Apr 17 23:03:13 PDT 2014
    root:xnu-2422.100.13~1/RELEASE_X86_64 x86_64
Comment 2 Chris Hamons 2014-12-05 13:42:25 UTC
I believe we already have this bound:

	public enum NSApplicationActivationOptions : nuint_compat_int {
		ActivateAllWindows = 1,
		ActivateIgnoringOtherWindows = 2

typedef NS_OPTIONS(NSUInteger, NSApplicationActivationOptions) {
    /* By default, activation brings only the main and key windows forward.  If you specify NSApplicationActivateAllWindows, all of the application's windows are brought forward. */
    NSApplicationActivateAllWindows = 1 << 0,
    /* By default, activation deactivates the calling app (assuming it was active), and then the new app is activated only if there is no currently active application.  This prevents the new app from stealing focus from the user, if the app is slow to activate and the user has switched to a different app in the interim.  However, if you specify NSApplicationActivateIgnoringOtherApps, the application is activated regardless of the currently active app, potentially stealing focus from the user.
     You ALMOST NEVER want to pass this flag, because stealing key focus produces a very bad user experience. */
    NSApplicationActivateIgnoringOtherApps = 1 << 1

The name could be better however.