possible NIB problem? nil NSTextView in NSWindowController
possible NIB problem? nil NSTextView in NSWindowController
- Subject: possible NIB problem? nil NSTextView in NSWindowController
- From: Teunis Peters <email@hidden>
- Date: Tue, 17 May 2005 03:41:34 -0700
I've got an interesting problem with an interface I built - one specific NSTextView ends up nil in the window controller, no matter what I do.
I can't duplicated it elsewhere (every other window and dialogue works fine)
HOWEVER:
I'm opening the window from another window - that's the only thing different.
thus:
wgImageWindowController* d = (wgImageWindowController*) [NSApp imageViewer];
if (d) {
[[d window] makeKeyAndOrderFront:self];
}
I've overloaded NSApplication... yes I know (now) that's probably not the best place - but it's storing a pool of common windows, database connections and the like that's used throughout the application and thus it still makes sense to me.
imageViewer = an NSWindowController based class, connected to the window. I've stored a copy of it in the NSApplication and link to it using the interface builder. It seems fine there. However - much earlier in development I discovered that objects in the NSApplication aren't necessarily stable if set from the interface builder... (had a couple of classes that remained nil no matter what I did)
Is there another way to create a window? I'd be quite happy with multiple windows opening incidentally, and I've found no sample code to do what I need *sigh*
I'm very new to MacOSX - I'm running OSX 10.3 with xCode 1.5 (IDE 389.0, Core 387.0, ToolSupport 372.0)<x-tad-smaller> and Interface Builder 2.4.2 (v364). I've been programming using Linux since '92 and other systems since umm no idea when, so I'm not new with programming *grin*
Thanks in advance for any assistance. It's a rather large project and the code's not public so I can't just post it. Any suggestions on debugging well definitely be explored.</x-tad-smaller> _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden