On Apr 2, 2010, at 14:03, Dean Pulsifer wrote: > The project is based on some Apple sample code. I took the existing > MainMenu.xib with its main window and added another window that included an > NSBrowser view. > > The File's Owner didn't have an obvious link to anything else. I am not > using a document. Does this matter? > > The class of the controller is PMPrinterTestController (from the sample code). > > The delegate for both windows is my main controller. > > My secondary window is actually an NSPanel. Does this make a difference? > > I connected the controller directly to the NSBrowser view rather than the > NSPanel that contains it.
In what method of your controller is the mutable array created? I'm guessing that you're somehow getting there twice, causing the original array with its 9 elements to be replaced by a new empty array. You could check that easily by setting a breakpoint on the line that creates the array, and see if you get there twice. If nothing in your code is clobbering the array, then I'd suspect the NSBrowser is doing something to its content. If so, I have no help to offer -- NSBrowser is one of a handful of nightmare object classes in the frameworks, and I'm still in therapy from the one time I tried to use it. :) _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com