PDA

View Full Version : Need a bit of help with a few simple things.




TyloBedo
Oct 27, 2009, 05:26 PM
Alright well i made a simple little app that loads up a game for me to save me time, however I have a few problems.

Basically what my application is right now is a window with a web view, and another window that pops up which I have to hit a "Play" button to send the url to the web view.


I was wonder how I can make it automatically load up the page without having to press the button. I know how to do it for the iPhone, and tried the same thing but it didn't work.

EDIT: I figured out the above, just need that bottom part now.


The next thing I would like to have it do is, when I x out of it I want the application to quit, OR when I close the window and click on the dock I want the window to relaunch.


My project name is call "web" incase you need to know.

Thanks in advance.



kainjow
Oct 27, 2009, 07:34 PM
Have a look at the NSApplication delegate method applicationShouldTerminateAfterLastWindowClosed.

TyloBedo
Oct 27, 2009, 09:48 PM
Have a look at the NSApplication delegate method applicationShouldTerminateAfterLastWindowClosed.

Alright I will, thanks.