Re: Adding multiple window functionality; advice, please.
Re: Adding multiple window functionality; advice, please.
- Subject: Re: Adding multiple window functionality; advice, please.
- From: John Nestor <email@hidden>
- Date: Fri, 04 Jan 2002 19:38:57 -0500
I had something like this a few days ago. This worked for me.
Create a new nib for the satellite windows,
Add a window to the nib and whatever you want in the window,
Sublass NSWindowController and be sure that it is File's Owner in the
new nib.
Connect outlets and add files for the new NSWindowController class.
Init you new window instances with
initWithWindowNibName:@"YourNewNibName"
hth
Matt Judy wrote:
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
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.