From: Tim P. <he...@ti...> - 2007-12-02 22:01:47
|
Hey all, I've implemented PSMTabBarControl ( http://www.positivespinmedia.com/dev/PSMTabBarControl.html ) in my application, however I seem to get random failures complaining like so: `NSApplicationMain': NSGenericException - *** Collection <NSCFArray: 0x5598d0> was mutated while being enumerated. (OSX::OCException) from /Users/timperrett/Desktop/RubyPSMTabDemo/build/Release/ RubyPSMTabDemo.app/Contents/Resources/rb_main.rb:22 Now, I only see this message (and subsequent crash) when I try to close a tab that is not currently selected. This however does not happen in the example that is coded in Obj-C (supplied in that download from PSM). Ive translated all the relevant code; the main difference being there example is document based and my translation is not. The framework obviously works (see the PSM example), but yet the translation does not. Nib wise, I have tried with the PSM delegate both specified, and un- specified, but it makes no difference. This leads me to think that it must be trying to either do something back across the bridge thats illegal, or there might be some kind of conflict with RC? Ive posted up a sample app here (and commented out any translated functionality that isnt essential): http://download.timperrett.com/software/RubyPSMTabDemo.zip Anybody's thoughts would be much appreciated :) Cheers Tim |