• 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: Faulty NSWindow connection in CoreData doc-based app?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Faulty NSWindow connection in CoreData doc-based app?


  • Subject: Re: Faulty NSWindow connection in CoreData doc-based app?
  • From: Charilaos Skiadas <email@hidden>
  • Date: Thu, 4 Aug 2005 12:30:18 -0500


On Aug 4, 2005, at 11:33 AM, Cameron Hendrix wrote:

I have a core data document-based application for which code was generated by XCode. The window connection to the "file's owner" (MyDocument.h, I assume) in the MyDocument.nib file does not seem to be working. However, outlets can be added and

What do you mean: "does not seem to be working"? How are you testing it? In my project it seems to be connected just fine. If you select File's Owner and go to the connections inspector, isn't there a window connection?
connected to controls that are placed on the window, and work just fine. Also, I can access the window to, for example, set the alpha value by going through another control, for example:

[[scrollView window] setAlphaValue:0.5];

Is this a bug with the core data document template? No error is generated by the compiler or at runtime when I send a message to "window" (yes, I added IBOutlet NSWindow * window; to the MyDocument.h file). Also, I've tried it on two separate computers and the same thing seems to happen on both.

You shouldn't have to add your own window outlet. Also keep in mind of course that a document *could* have more than one windows corresponding to it, like different views of the same object. Of course, if you are using the standard windowController and documentController that comes for free, then you shouldn't need to worry about any of this.
Any ideas?

Thanks,

Cameron

Haris


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Faulty NSWindow connection in CoreData doc-based app?
      • From: James DiPalma <email@hidden>
References: 
 >Faulty NSWindow connection in CoreData doc-based app? (From: Cameron Hendrix <email@hidden>)

  • Prev by Date: ComboBox Questions
  • Next by Date: Re: NSMetadataItem performance issues
  • Previous by thread: Faulty NSWindow connection in CoreData doc-based app?
  • Next by thread: Re: Faulty NSWindow connection in CoreData doc-based app?
  • Index(es):
    • Date
    • Thread