• 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: Outline and Table back to front
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Outline and Table back to front


  • Subject: Re: Outline and Table back to front
  • From: Thomas Davie <email@hidden>
  • Date: Mon, 20 Jun 2005 20:27:42 +0100


On Jun 20, 2005, at 8:21 PM, SA Dev wrote:


Now you're just being silly. A rectangle is a rectangle because it spent eight years in rectangle college whereas the square barely passed high school geometry ... ;-)


But seriously, folks, this basically boils down to a design decision. But to be fair, in Cocoa, a square is actually a rectangle with equal length and width:

NSRect * rect = NSMakeRect(0, 0, 20, 10);
NSRect * square = NSMakeRect(0, 0, 10, 10);

Now THAT'S pedantic.
My point here is nothing to do with cocoa... In real life a square is a rectangle. A rectangle is not necessarily a square. This is the classic example given to anyone learning about OOP.

On Jun 20, 2005, at 3:00 PM, Thomas Davie wrote:

A rectangle is a square since it has four edges
A square is not a rectangle since it can't have different lengthed edges





_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Outline and Table back to front
      • From: SA Dev <email@hidden>
References: 
 >Re: Outline and Table back to front (From: Gorazd Krosl <email@hidden>)
 >Re: Outline and Table back to front (From: Thomas Davie <email@hidden>)
 >Re: Outline and Table back to front (From: Jesus De Meyer <email@hidden>)
 >Re: Outline and Table back to front (From: Thomas Davie <email@hidden>)
 >Re: Outline and Table back to front (From: Corbin Dunn <email@hidden>)
 >Re: Outline and Table back to front (From: Thomas Davie <email@hidden>)
 >Re: Outline and Table back to front (From: Bill Bumgarner <email@hidden>)
 >Re: Outline and Table back to front (From: Thomas Davie <email@hidden>)
 >Re: Outline and Table back to front (From: Andreas Mayer <email@hidden>)
 >Re: Outline and Table back to front (From: Thomas Davie <email@hidden>)
 >Re: Outline and Table back to front (From: SA Dev <email@hidden>)

  • Prev by Date: Re: Outline and Table back to front
  • Next by Date: Re: Outline and Table back to front
  • Previous by thread: Re: Outline and Table back to front
  • Next by thread: Re: Outline and Table back to front
  • Index(es):
    • Date
    • Thread