On 30.12.2009, at 06:23, David Blanton wrote:
> Putting the inspectors in MainMenu.xib will let me make just 'one set' for
> all documents but I am unsure as to how to get a reference from the inspector
> to the document given different xib's.
Menus work the same way: There's one menu in MainMe
Thanks to all who gave advice.
I'll give a description of what I did. If you have any further
comments or suggestions please come forth!
In MainMenu.xib
An NSPanel that contains an NSOutlineView
An Application Delegate that has a reference to the NSOutlineView
In MyDocument.m
- (id)init
On 30/12/2009, at 4:23 PM, David Blanton wrote:
> In a document based app I want to have some 'inspectors" that reflect what i
> sgoing on in the document. These inspectors should float.
>
> If I make NSPanel's for the inspector in MyDocument.xib then each instance of
> a document gets its ow
If you have an application delegate you can add a IB instance variable to that.
Though what I usually do in your situation is to create a separate NIB and
window controller for the inspector panel, I then have a showInspector method
in my application delegate which will create the window controll
In a document based app I want to have some 'inspectors" that reflect
what i sgoing on in the document. These inspectors should float.
If I make NSPanel's for the inspector in MyDocument.xib then each
instance of a document gets its own set of inspectors.
I would like to have just one set