Adding multiple window functionality; advice, please.
Adding multiple window functionality; advice, please.
- Subject: Adding multiple window functionality; advice, please.
- From: Matt Judy <email@hidden>
- Date: Fri, 04 Jan 2002 15:52:00 -0800
Hi!
I posted this a while back but recieved no response, so I'll rephrase.
I have a single window app that features an NSTableView and an
NSImageView, grouped in an NSSplitView. The NSTableView displays a
catalog of images, and the NSImageView displays the currently selected
image. It looks a lot like Mail.app (sans drawer), and works very well.
In the never-ending and naturally driven quest to add more functionality
to a Cocoa app, I'm trying to implement a feature where the user can
open a new window to display the currently selected image. You can have
as many of these individual "Viewer" windows as you want.
I've created an NSWindowController subclass, and I'm displaying new
viewer windows by creating instances of it (and adding them to an
array). The windows appear, but I can't seem to make the image load in
the imageView, and outlets don't seem to be connected...
Often, when I'm having trouble it's because I've overlooked an obvious,
simpler implementation. Perhaps this is the case...
Any advice?
Thanks (again) in advance,
--Matt Judy