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

  • Home
  • SEARCH
  • 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 162145
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T11:20:20+00:00 2026-05-11T11:20:20+00:00

I noticed this in Joe Hewitt’s source for Three20 and I’ve never seen this

  • 0

I noticed this in Joe Hewitt’s source for Three20 and I’ve never seen this particular syntax in Objective-C before. Not even sure how to reference it in an appropriate Google search.

From TTTableViewDataSource:

+ (TTSectionedDataSource*)dataSourceWithObjects:(id)object,... { 

The ‘…’ is what’s throwing me off here. I’m assuming it’s a form of enumeration where a variable amount of arguments may be supplied. If it is, what’s the official name for this operator and where can I reference the documentation for it?

Thank you kindly.

  • 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. 2026-05-11T11:20:20+00:00Added an answer on May 11, 2026 at 11:20 am

    It’s a variadic method, meaning it takes a variable number of arguments. This page has a good demonstration of how to use it:

    #import <Cocoa/Cocoa.h>  @interface NSMutableArray (variadicMethodExample)  - (void) appendObjects:(id) firstObject, ...;  // This method takes a nil-terminated list of objects.  @end  @implementation NSMutableArray (variadicMethodExample)  - (void) appendObjects:(id) firstObject, ... { id eachObject; va_list argumentList; if (firstObject)                      // The first argument isn't part of the varargs list,   {                                   // so we'll handle it separately.   [self addObject: firstObject];   va_start(argumentList, firstObject);          // Start scanning for arguments after firstObject.   while (eachObject = va_arg(argumentList, id)) // As many times as we can get an argument of type 'id'     [self addObject: eachObject];               // that isn't nil, add it to self's contents.   va_end(argumentList);   } } 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've never noticed this behavior before, but I'm surprised at the output naming conventions
I noticed this site http://aspnetwebstack.codeplex.com/ . Is web forms source available?
Noticed this urls.py definition in an open source django app. r'^(?P<username>(?!signout|signup|signin)[\.\w]+)/$ How do I
I noticed this rule in Firebug: *|*:link { color:#0000EE; } I'm not sure that
Just noticed this and wanted to mention it. If anyone has seen this issue
Has anyone noticed this behavior before? This really threw me off... I would have
Have noticed this a fewtimes when I'm piping something into sed which does not
I noticed this before. Sometimes in some browsers with flash camera dialog you won't
I noticed this particular line of code when I was profiling my application (which
I only noticed this last night, as I have not used the toolbox on

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.