Re: [MacRuby-devel] Phantom closed windows in document based apps

2012-01-31 Thread Milos & Slavica
Thanks Joshua for your reply! While, GC.start did not make a difference even when it was placed right inside the block before inspecting window controllers, your second suggestion did. For the benefit of anyone else encountering this problem (and following Joshua’s advice), I started with the O

Re: [MacRuby-devel] Phantom closed windows in document based apps

2012-01-30 Thread Joshua Ballanco
You're likely seeing the effect of GC. I suspect that if you did a "GC.start" before inspecting, or compiled the Obj-C template and ran it under GC, then you would find more consistent results. :) - Josh On Friday, January 20, 2012 at 2:09 PM, Milos & Slavica wrote: > Hi, > > Has anyone s

[MacRuby-devel] Phantom closed windows in document based apps

2012-01-20 Thread Milos & Slavica
Hi, Has anyone seen this problem: - Start a new Xcode project with the MacRuby document-based application template. - Open a number of windows. - Close a window (leaving others open). - Then do: NSApp.windows.map {|win| p win.windowController.document} - This produces something like: # # n