Am 12.11.2008 um 19:22 schrieb Jean-Nicolas Jolivet:
[window setToolbar:] for example gives me an error saying that
"window" wasn't declared
try [[self window] setToolBar:]
If I try to declare a "window" outlet in my code and try to connect
it in IB, I end up with 2 outlets named "w
On Wed, Nov 12, 2008 at 1:22 PM, Jean-Nicolas Jolivet
<[EMAIL PROTECTED]> wrote:
> What's the use of this outlet if I can't access
> it in my code?
It's there for the default NSDocument machinery to set up an
NSWindowController for you. If you override -[NSDocument
windowNibName], then NSDocument
On Nov 12, 2008, at 11:22 AM, Jean-Nicolas Jolivet wrote:
Of course the easy work around was to declare a new outlet that I
named "mainWindow" and connected to my file owner, that way I can
access the main window from my code... but still I was wondering why
it is not possible to access th
I noticed that, by default, when creating a new Document Based
application, if you open the MyDocument's nib file, the FileOwner's
object (i.e. MyDocument's instance) already has an outlet named
"window" which is connected to my main document's window. However, it
seems like it's impossible