Need a bit of help with a few simple things.

Discussion in 'Mac Programming' started by TyloBedo, Oct 27, 2009.

  1. TyloBedo macrumors member

    Aug 7, 2008
    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.
  2. kainjow Moderator emeritus


    Jun 15, 2000
    Have a look at the NSApplication delegate method applicationShouldTerminateAfterLastWindowClosed.
  3. TyloBedo thread starter macrumors member

    Aug 7, 2008
    Alright I will, thanks.

Share This Page