TooTallNate/NodObjC — Issue #13: modal behavior differs from PyObjC
Author: nathan-lafreniere
Created: 2012-01-21 03:21:46+00:00
State: open

Given equivalent code, PyObjC and NodObjC have different behavior. In PyObjC modal windows come to the front, as expected. In NodObjC the same window stays at the bottom of the stack and cannot be focused.

NodObjC---
var $ = require('NodObjC');

$.import('IOBluetooth');
$.import('IOBluetoothUI');

var selector = $.IOBluetoothDeviceSelectorController('deviceSelector');
selector('runModal');

PyObC---
IOBluetoothUI.py ====
import objc as _objc
_objc.loadBundle('IOBluetoothUI', globals(),
bundle_path=u'/System/Library/Frameworks/IOBluetoothUI.framework')

main.py ====
from IOBluetoothUI import *
selector = IOBluetoothDeviceSelectorController.deviceSelector()
selector.runModal()