• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Building an MVC based App for Mac OS X - NOT for iOS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building an MVC based App for Mac OS X - NOT for iOS


  • Subject: Re: Building an MVC based App for Mac OS X - NOT for iOS
  • From: Keary Suska <email@hidden>
  • Date: Mon, 27 May 2013 19:46:51 -0600

On May 27, 2013, at 7:04 PM, YT wrote:

> I'm running
> OS X 10.8.3 (Mountain Lion)
> XCODE 4.6.1
> on MacBook
>
>
> When I create a NEW project
> Selecting
> Mac OS X => Application => Cocoa Application
>
> The end results does not automatically generate Controller.(m,h) files

It does, kind of. The app delegate may be considered a kind of controller, though not in the same sense as iOS.

> WHY NOT?

Because iOS is not Mac OS X--they may have some similar underpinnings, but they really are two different operating systems. Would you expect programing Windows to work the same OS X, considering that from a user-interaction point of view they share more concepts than iOS?

The short answer is that unlike iOS, Mac apps do not necessarily have a primary window. In fact, a Mac app may have no GUI at all. Thus there is no good "default" choice for a controller.

Really, in a Mac App what happens in main.m is all that is needed to launch a fully-functional app, even though it won't do anything. That's the Mac OS X starting point. Everything from there you have to build yourself.

> You automatically get Controller files when creating an iOS based App.
>
> SO!  I've been trying to create Controller files that I can set up connections to like Target-Actions and Outlets in the Interface Editor.
> So far I have not been successful using instructions I found in the Apple Guide: Edit User Interfaces.
>
> Perhaps there is a better Guide on setting up an MVC for Mac OS X Apps or maybe there is a little know incantation some one might hare with me?

Mac OS X development os much more complicated than iOS development. It is not likely somehting you can just dive into without a learning curve. There are plenty of good books on Mac OS X development--you may want to pick one up.

HTH,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Building an MVC based App for Mac OS X - NOT for iOS
      • From: Jens Alfke <email@hidden>
References: 
 >Building an MVC based App for Mac OS X - NOT for iOS (From: YT <email@hidden>)

  • Prev by Date: Auto Layout & NSScrollViews
  • Next by Date: Re: Building an MVC based App for Mac OS X - NOT for iOS
  • Previous by thread: Building an MVC based App for Mac OS X - NOT for iOS
  • Next by thread: Re: Building an MVC based App for Mac OS X - NOT for iOS
  • Index(es):
    • Date
    • Thread