• 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
Re: File's owner in nib file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: File's owner in nib file
      • From: Miguel Carvajal <email@hidden>
References: 
 >File's owner in nib file (From: Miguel Carvajal <email@hidden>)

  • Prev by Date: File's owner in nib file
  • Next by Date: Re: File's owner in nib file
  • Previous by thread: File's owner in nib file
  • Next by thread: Re: File's owner in nib file
  • Index(es):
    • Date
    • Thread