Re: MyDocument.xib v MainMenu.xib

2009-12-30 Thread Uli Kusterer
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

Re: MyDocument.xib v MainMenu.xib

2009-12-30 Thread David Blanton
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

Re: MyDocument.xib v MainMenu.xib

2009-12-29 Thread Graham Cox
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

Re: MyDocument.xib v MainMenu.xib

2009-12-29 Thread Nathan Day
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

MyDocument.xib v MainMenu.xib

2009-12-29 Thread David Blanton
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