Re: Faulty NSWindow connection in CoreData doc-based app?
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