• 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: Cocoa et al as HCI usability problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa et al as HCI usability problem


  • Subject: Re: Cocoa et al as HCI usability problem
  • From: Andy Lee <email@hidden>
  • Date: Mon, 19 May 2008 15:51:07 -0400

Am 19.05.2008 um 13:11 Uhr schrieb Peter Duniho:
I just don't see how declaring an interface and then using it is so inferior to an informal protocol that it justifies the entire message-dispatching paradigm, especially given that there are in fact advantages to the former. At best, it's a wash.

I'm so used to the Objective-C/Smalltalk way that I admit I haven't thought this through, but two things come to mind:


* Objective-C allows you to create categories, effectively modifying a class's interface at runtime. This is handy for adding methods that more naturally belong to an existing class rather than as, for example, static methods in a utility class: [myString endsWithAVowel] rather than [MyStringUtils stringEndsWithAVowel:myString]. Categories also allow you to add a behavior to an internal node in a class hierarchy, and thus to that class's existing and future descendants -- an annoying problem to solve when the only way you have of modifying a class is by subclassing.

* Interface Builder is sometimes given as an example of an app that would be more difficult to write in, say, Java. I haven't thought through exactly how I would write it in Java, so I'm not prepared to argue this case just yet. I suspect I would have to do it by bypassing some of the very protections that Java gives me.

--Andy


_______________________________________________

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: Cocoa et al as HCI usability problem
      • From: Jayson Adams <email@hidden>
References: 
 >Re: Cocoa et al as HCI usability problem (From: Peter Duniho <email@hidden>)
 >Re: Cocoa et al as HCI usability problem (From: ben syverson <email@hidden>)
 >Re: Cocoa et al as HCI usability problem (From: Peter Duniho <email@hidden>)
 >Re: Cocoa et al as HCI usability problem (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Cocoa et al as HCI usability problem (From: Peter Duniho <email@hidden>)
 >Re: Cocoa et al as HCI usability problem (From: Andreas Mayer <email@hidden>)

  • Prev by Date: Re: How to handle bad certificate error in NSURLDownload?
  • Next by Date: NSProgressIndicator and some very basic stuff ...
  • Previous by thread: Re: Cocoa et al as HCI usability problem
  • Next by thread: Re: Cocoa et al as HCI usability problem
  • Index(es):
    • Date
    • Thread