Re: Cocoa - Not loading any window at startup ...

2008-03-06 Thread Nir Soffer
On Mar 6, 2008, at 18:30, Michael Pringle wrote: I want the dock icon to have a menu appear above it when clicked, similar to how stacks work in Leopard. So not that unusual really ... also Dashboard works the same way, dock icon with no menu. If you play with all those apps, you can se

Re: Cocoa - Not loading any window at startup ...

2008-03-06 Thread Michael Pringle
I want the dock icon to have a menu appear above it when clicked, similar to how stacks work in Leopard. So not that unusual really ... also Dashboard works the same way, dock icon with no menu. On 6 Mar 2008, at 15:27, Nir Soffer wrote: On Mar 6, 2008, at 13:55, [EMAIL PROTECTED] wrote:

Re: Cocoa - Not loading any window at startup ...

2008-03-06 Thread Nir Soffer
On Mar 6, 2008, at 13:55, [EMAIL PROTECTED] wrote: So ultimatley my question is, how do launch/setup my application so that I get a dock icon, but no menu bar and so that no window is opened when launched, only when the user does something that prompts a window. You don't - because no ot

Re: Cocoa - Not loading any window at startup ...

2008-03-06 Thread Alastair Houghton
On 6 Mar 2008, at 11:54, [EMAIL PROTECTED] wrote: I didn't know that nothing had been posted as I sent the following email ... Ah, in that case I apologise. It's just that people post messages with empty bodies all the time, both to public mailing lists and to e.g. my company's support a

Re: Cocoa - Not loading any window at startup ...

2008-03-06 Thread Jean-Daniel Dupas
As your window is in the same nib than your menu, you can simply bind your menu item's action to the makeKeyAndOrderFront: method of the window. If you also want to add a button to close your window, bind the button's action to performClose: If you need a more complex logic, you can create

Re: Cocoa - Not loading any window at startup ...

2008-03-06 Thread micpringle
Hi Jean-Daniel, I thought it would be something simple, which is probably why I couldn't find any reference for it on Google :-) Will check this when I get home. If this is the case, how does one then go about opening and closing the window, from say a menu item attached to an action ?? Th

Re: Cocoa - Not loading any window at startup ...

2008-03-06 Thread Jean-Daniel Dupas
Hi, To prevent your window to open at startup, uncheck the 'Visible At Launch' box in your window settings (in Interface Builder). I don't know a supported way to create an application that appears in the Dock but has the same behaviour than a LSUIElement. Le 6 mars 08 à 12:55, [EMAIL P

Re: Cocoa - Not loading any window at startup ...

2008-03-06 Thread Alastair Houghton
On 6 Mar 2008, at 11:05, [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] - posting empty messages to cocoa-dev ... Seriously, please post an actual question, not just a subject line. As it is, even *with* the subject line you chose, we have no idea exactly what you're trying to do. There ar