FROM : Fritz Anderson
DATE : Sat Nov 30 19:47:20 2002
You did the right thing, and it's not even a work-around: In all but
the simplest applications, the controller object for document windows
is an NSWindowController, not an NSDocument.
-- F
On Saturday, November 30, 2002, at 11:24 AM, Uwe Schlosser wrote:
> I would like to add a toolbar to a document based application.
...
> The problem is setting up the toolbar in the document window by the
> method
> [window setToolbar: toolbar];
> The instance variable window is declared as private in NSDocument, so
> there is no direct access in MyDocument.
>
> I worked a round this problem by defining a second a second instance
> variable
> IBOutlet id docWindow
>
> and did the the right connection in IB. After replacing window by
> docWindow and compiling the code the application works fine.
> In the end I use to instance variable for one object and that a bit
> strange.
> My question is, is this the only way to work around such a problem.
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
DATE : Sat Nov 30 19:47:20 2002
You did the right thing, and it's not even a work-around: In all but
the simplest applications, the controller object for document windows
is an NSWindowController, not an NSDocument.
-- F
On Saturday, November 30, 2002, at 11:24 AM, Uwe Schlosser wrote:
> I would like to add a toolbar to a document based application.
...
> The problem is setting up the toolbar in the document window by the
> method
> [window setToolbar: toolbar];
> The instance variable window is declared as private in NSDocument, so
> there is no direct access in MyDocument.
>
> I worked a round this problem by defining a second a second instance
> variable
> IBOutlet id docWindow
>
> and did the the right connection in IB. After replacing window by
> docWindow and compiling the code the application works fine.
> In the end I use to instance variable for one object and that a bit
> strange.
> My question is, is this the only way to work around such a problem.
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
| Related mails | Author | Date |
|---|---|---|
| Uwe Schlosser | Nov 30, 18:24 | |
| j o a r | Nov 30, 19:11 | |
| Fritz Anderson | Nov 30, 19:47 |






Cocoa mail archive

