• 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: CD: Creating a managed object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CD: Creating a managed object


  • Subject: Re: CD: Creating a managed object
  • From: "I. Savant" <email@hidden>
  • Date: Wed, 30 May 2007 07:09:55 -0400

On May 30, 2007, at 1:50 AM, Ian Joyner wrote:
I got your suggestion from your last post – still looking into it. NSView doesn't have a delegate, and it seems a bit artificial to build the delegate mechanism into an app class (a reusable framework class would be entirely different).

NSView is *meant* to be subclassed. It's all but useless to developers otherwise. You can add anything to it you want / need to get things done. It's not artificial, it's what you're meant to do. Whether it's packaged into a framework or not is entirely irrelevant, if you want a custom view, you subclass NSView. Additionally, "a delegate" can be whatever you want it to be. So can the delegate methods you add. It's a messaging mechanism that allows others to help decide how the delegator is to do things. That's all.


Regarding MVC design, it's fairly flexible and there's no one right way to design your app according to this pattern, but outright breaking it in a Cocoa app is quite simply a bad idea. Not because all applications that don't adopt the design pattern are inherently flawed, but because *Cocoa* applications use an API designed this way.

You may have been offended by my telling you to go back and read some more, but you're going to have to get over it. The plain fact is, you're trying to run before you walk and you're missing some big, important points along the way and it shows. You're being argumentative with everyone who's given you answers, which suggests you're only interested in making people tell you how to make it work *your* way. Good luck with that.

--
I.S.



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: CD: Creating a managed object
      • From: Ian Joyner <email@hidden>
References: 
 >CD: Creating a managed object (From: Ian Joyner <email@hidden>)
 >Re: CD: Creating a managed object (From: mmalc Crawford <email@hidden>)
 >Re: CD: Creating a managed object (From: Ian Joyner <email@hidden>)
 >Re: CD: Creating a managed object (From: mmalc Crawford <email@hidden>)
 >Re: CD: Creating a managed object (From: Ian Joyner <email@hidden>)
 >Re: CD: Creating a managed object (From: "I. Savant" <email@hidden>)
 >Re: CD: Creating a managed object (From: Ian Joyner <email@hidden>)
 >Re: CD: Creating a managed object (From: "Marcus S. Zarra" <email@hidden>)
 >Re: CD: Creating a managed object (From: Ian Joyner <email@hidden>)

  • Prev by Date: Qt embedded in Cocoa
  • Next by Date: Re: NSBrowser is asking for wrong column
  • Previous by thread: Re: CD: Creating a managed object
  • Next by thread: Re: CD: Creating a managed object
  • Index(es):
    • Date
    • Thread