• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
possible NIB problem? nil NSTextView in NSWindowController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: possible NIB problem? nil NSTextView in NSWindowController
      • From: j o a r <email@hidden>
  • Prev by Date: Re: New G5 under Panther or XCode 1.5 under Tiger
  • Next by Date: Re: possible NIB problem? nil NSTextView in NSWindowController
  • Previous by thread: Re: New G5 under Panther or XCode 1.5 under Tiger
  • Next by thread: Re: possible NIB problem? nil NSTextView in NSWindowController
  • Index(es):
    • Date
    • Thread