Re: [ANN] Cocoa Style for ObjC: 1 and 2
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