Re: How to open two nibs at app launch ? Beginners question

2009-04-13 Thread Mario Kušnjer
On 2009.04.13, at 05:40, Quincey Morris wrote: It's not wrong at all. Separate nibs are the recommended way of doing this. You may just need to tell your window controller to display its window. Trying adding: [myWindowController showWindow: nil]; after you've initialized your

Re: How to open two nibs at app launch ? Beginners question

2009-04-13 Thread Quincey Morris
On Apr 13, 2009, at 01:14, Mario Kušnjer wrote: But I actually don't understand those application delegate's concept. How do I make something to delegate to something else (did I even get that right ?) ? Application delegate would be (in my case) an object added in MainMenu.nib that would

Re: How to open two nibs at app launch ? Beginners question

2009-04-13 Thread Mario Kušnjer
On 2009.04.13, at 11:15, Quincey Morris wrote: Not exactly. Make your application delegate (let's say its class is MyAppDelegate) separate from your window controller. So, the steps are: -- write a MyAppDelegate class (subclass of NSObject) -- in IB, drag an object into MainMenu.xib,

Re: How to open two nibs at app launch ? Beginners question

2009-04-13 Thread Michael Ash
On Mon, Apr 13, 2009 at 6:27 AM, Mario Kušnjer mario.kusn...@sb.t-com.hr wrote: On 2009.04.13, at 11:15, Quincey Morris wrote: Not exactly. Make your application delegate (let's say its class is MyAppDelegate) separate from your window controller. So, the steps are: -- write a MyAppDelegate

Re: How to open two nibs at app launch ? Beginners question

2009-04-13 Thread Filip van der Meeren
On 13 Apr 2009, at 17:21, Michael Ash wrote: On Mon, Apr 13, 2009 at 6:27 AM, Mario Kušnjer mario.kusn...@sb.t-com.hr wrote: On 2009.04.13, at 11:15, Quincey Morris wrote: Not exactly. Make your application delegate (let's say its class is MyAppDelegate) separate from your window

Re: How to open two nibs at app launch ? Beginners question

2009-04-13 Thread Quincey Morris
On Apr 13, 2009, at 08:29, Filip van der Meeren wrote: Instead of overriding the init method, you could override windowNibName - (NSString*)windowNibName { return @MyNibName; } and then just call your WindowController alloc init methods... This doesn't look correct. This pattern is used

How to open two nibs at app launch ? Beginners question

2009-04-12 Thread Mario Kušnjer
My regards to all on the list My name is Mario and I am now to Cocoa and Objective-C so I have some questions which will sound trivial to those with more experience. Please don't refer me to documentations because I have read them and looked for an answer and I tried to do it according to

Re: How to open two nibs at app launch ? Beginners question

2009-04-12 Thread Quincey Morris
On Apr 12, 2009, at 07:49, Mario Kušnjer wrote: The problem is: I have MainMenu.xib with only main menu whose File's Owner is NSApplication. I want to have MainWindow.xib with only a window but that will be launched also when the application starts. Now you will ask why separate nibs ?