From iPhone OS to cocoa on OSX...

Posted by David on Stack Overflow See other posts from Stack Overflow or by David
Published on 2010-06-08T14:49:17Z Indexed on 2010/06/08 14:52 UTC
Read the original article Hit count: 511

Filed under:
|
|
|

Hi - this is quite a basic OSX/cocoa question.

I come from an iPhone OS development background. I'm now trying to write apps for OSX, but I don't understand where cocoa on OSX decides where the program gets control.

I can see the main function, but where does program control go from there? Say for example I want to programatically create a window with an NSView in it once the app has finished launching - how would I do that? There is no app delegate created that I can see, in iPhone OS I would wait for the - (void) applicationDidFinishLaunching:(UIApplication *)application

method to be called. I really don't want to use the Interface Builder or NIB files to setup my window/view. How would I go about this?

Any help would be much appreciated -

Cheers, David

© Stack Overflow or respective owner

Related posts about iphone

Related posts about cocoa