• 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: [ANN] Cocoa Style for ObjC: 1 and 2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ANN] Cocoa Style for ObjC: 1 and 2


  • Subject: Re: [ANN] Cocoa Style for ObjC: 1 and 2
  • From: Scott Stevenson <email@hidden>
  • Date: Wed, 27 Oct 2004 13:50:25 -0700


On Oct 27, 2004, at 1:00 PM, The Amazing Llama wrote:

[array addObject: eachName];

It reads as "add each name to the array" which isn't what it's doing.

This is very AppleScript-y, and it makes sense there, because you ARE in fact adding eachName to the array. For instance
repeat with eachName in someList
add eachName to theArray
end repeat

I think you can make a case for it making sense on its own merit, but I don't think it flows as well with other Objective-C guidelines. But I really don't consider it "wrong", just not as ideal as item, oneObject, theObject, currentObject, anObject, etc.

Now, on to more important matters. There's a pixel somewhere in the Xcode UI I wanted to complain about...

- Scott


--
http://treehouseideas.com/
http://theobroma.treehouseideas.com/ [blog]

_______________________________________________
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
References: 
 >[ANN] Cocoa Style for ObjC: 1 and 2 (From: Scott Stevenson <email@hidden>)
 >Re: [ANN] Cocoa Style for ObjC: 1 and 2 (From: Marco Scheurer <email@hidden>)
 >Re: [ANN] Cocoa Style for ObjC: 1 and 2 (From: Scott Stevenson <email@hidden>)
 >Re: [ANN] Cocoa Style for ObjC: 1 and 2 (From: The Amazing Llama <email@hidden>)

  • Prev by Date: Re: Cocoa Java futures, NDA's etc
  • Next by Date: Re: [ANN] Cocoa Style for ObjC: 1 and 2
  • Previous by thread: Re: [ANN] Cocoa Style for ObjC: 1 and 2
  • Next by thread: Re: [ANN] Cocoa Style for ObjC: 1 and 2
  • Index(es):
    • Date
    • Thread