Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8888983
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T22:09:02+00:00 2026-06-14T22:09:02+00:00

I wasn’t aware this syntax was valid. + (void) methodName:(TypeObject *)typeObject1:(TypeObject *)typeObject2; Which is

  • 0

I wasn’t aware this syntax was valid.

+ (void) methodName:(TypeObject *)typeObject1:(TypeObject *)typeObject2;

Which is then called like so:

[object methodName:obj1:obj2];

I find it ugly and disturbing, but it builds.

Can someone point me at a reference which explains why this is valid.

FWIW the codebase (inherited) that this comes from, is rife with sloppy, lazy stuff, dozens of spelling errors and looks like it was formatted by someone with no need to ever read it again. (Thank you again uncrustify.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T22:09:03+00:00Added an answer on June 14, 2026 at 10:09 pm

    This is a well-kown and documented feature (pdf, p. 14)

    In principle, a Rectangle class could instead implement a setOrigin::
    method with no label for the second parameter, which would be invoked
    as follows:

    [myRectangle setOrigin:30.0 :50.0]; // This is a bad example of multiple parameters

    but apple discourage everbody of using parameter passing without keyword:

    Use keywords before all arguments.
    - (void)sendAction:(SEL)aSelector to:(id)anObject forAllCells:(BOOL)flag; -> Right.
    - (void)sendAction:(SEL)aSelector :(id)anObject :(BOOL)flag; -> Wrong.

    Why it was allowed by the creators of objective-C, I dont know. Maybe it has to do with the Smalltalk heritage.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wasn't able to find documentation for this. It looks like the R source
I wasn't aware of this, but apparently the and and or keywords aren't operators.
wasn't too sure where to ask this. I am just trying to find which
I wasn't able to display the banner using dapp exported code which looks like
Wasn't really sure how to search for this... I have a the following which
Wasn't quite sure how to word this but let's say I've used ssh to
I wasn't 100% how to phrase this question. I have a request to a
I wasn't even sure how to phrase this so you'll have to forgive me
Google wasn't my friend this time. This is the closest to a doc I
This wasn't happening before, so I'm assuming something I did is causing this, yet

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.