Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

TyloBedo

macrumors member
Original poster
Aug 7, 2008
63
1
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.
 
Have a look at the NSApplication delegate method applicationShouldTerminateAfterLastWindowClosed.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.