Re: File's owner in nib file
Re: File's owner in nib file
- Subject: Re: File's owner in nib file
- From: Quincey Morris <email@hidden>
- Date: Sun, 08 Jun 2014 11:35:30 -0700
On Jun 8, 2014, at 11:05 , Miguel Carvajal <email@hidden> wrote:
I created a new NSWindow in interface builder and using a NSWindowController i pr ogrammatically load the window from the nib and show it, but once i close the window, i don' t get it show again. Some digging in stackoverflow revealed me that it happens that way because i have to set the File's Owner of the NSWindow in IB to NSWindowsController. Why i have to do that, and what is the File's Owner by the way?
a. This is really a Cocoa question, so the appropriate list would be cocoa-dev.
b. You’re probably going to need to show some snippets of code.
What are you doing to show the window the first time?
What are you doing to show the window again?
How are you programmatically loading the window?
Are you sure you’re keeping a strong reference to the *window controller* somewhere? If you end up with a nil reference, messaging it to show the window will have no effect.
|
_______________________________________________
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