| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
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.
| References: | |
| >Add Toolbar to Document Based Project (From: Uwe Schlosser <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.