• 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: NSController revisited
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSController revisited


  • Subject: Re: NSController revisited
  • From: Marco Scheurer <email@hidden>
  • Date: Tue, 4 Nov 2003 16:26:19 +0100

On Tuesday, November 4, 2003, at 03:46 PM, Stiphane Sudre wrote:

On Tuesday, November 4, 2003, at 03:25 PM, Aaron Hillegass wrote:

After many demonstrations of the power of NSController ("Aaron, this app was 252,500 lines of code, but with NSController it is only >> 3!"),

I'm particularly interested by this point.

NSController(252,500) = 3;

Can it be possible to have the conversion ratio on the number of outlet connections?

Because if you replace 252,500 lines of code with 3 (which I doubt is a real case), doesn't it mean that you have added 2,500 connections in your nibs?

The issue being that you can more easily find a bug in your code than an issue in a connection. If you refer to the time you waste sometimes figuring out why the app is not working when you just forgot to create the connection between the V and the C.

I presume that to be fair the comparison would be done in cases where outlet connections where already needed. For instance preferences panes, inspector panels and the like with regular controller code to glue the UI elements to the model.

Even assuming a generous 10 lines per outlet, that would mean 25000 outlets. What application uses 25000 outlets? That's a thousand preference panels with 25 UI elements each!

Frankly, I fail to see how this makes sense to the regular Cocoa programmer. Was this porting a non-Cocoa, non-IB project?

Marco Scheurer
Sen:te, Lausanne, Switzerland http://www.sente.ch
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: NSController revisited
      • From: Stéphane Sudre <email@hidden>
References: 
 >Re: NSController revisited (From: Stéphane Sudre <email@hidden>)

  • Prev by Date: Looking for XCode binding version of CurrencyConverter Sample Code
  • Next by Date: NSController, currentDocument
  • Previous by thread: Re: NSController revisited
  • Next by thread: Re: NSController revisited
  • Index(es):
    • Date
    • Thread