Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: beginner obj-c question



On Apr 4, 2008, at 6:18 PM, Andy Lee wrote:
If method parameters were named, you wouldn't be able to have a method like this:

   - (void)doSomethingWithThis:(id)objectOne
                       andThis:(id)objectTwo
                       andThis:(id)objectThree
                       andThis:(id)objectFour;

...because then you'd have three parameters with the same name.

Aha. I added the word "proof" to my Google search and found this, which must be where I got the above:


<http://waffle.wootest.net/2007/02/20/selectors-vs-named-arguments/>

As for how I came across *that* -- I may never know.

--Andy


_______________________________________________ Do not post admin requests to the list. They will be ignored. Objc-language mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/objc-language/email@hidden

This email sent to email@hidden
References: 
 >Re: beginner obj-c question (From: Baiss Eric Magnusson <email@hidden>)
 >Re: beginner obj-c question (From: Bill Bumgarner <email@hidden>)
 >Re: beginner obj-c question (From: Andy Lee <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.