Xwt.Mac.AppDelegate.HandleGetUrlEvent C# (CSharp) Method

HandleGetUrlEvent() private method

private HandleGetUrlEvent ( NSAppleEventDescriptor descriptor, NSAppleEventDescriptor reply ) : void
descriptor NSAppleEventDescriptor
reply NSAppleEventDescriptor
return void
		void HandleGetUrlEvent(NSAppleEventDescriptor descriptor, NSAppleEventDescriptor reply)
		{
			var openUrlEvent = OpenUrl;
			if (openUrlEvent == null)
				return;
			
			string keyDirectObjectString = "----";
			uint keywordDirectObject = (((uint)keyDirectObjectString [0]) << 24 |
				((uint)keyDirectObjectString [1]) << 16 |
				((uint)keyDirectObjectString [2]) << 8 |
				((uint)keyDirectObjectString [3]));
			
			string urlString = descriptor.ParamDescriptorForKeyword (keywordDirectObject).ToString ();
			openUrlEvent (NSApplication.SharedApplication, new OpenUrlEventArgs (urlString));
		}