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 8988375
In Process

The Archive Base Latest Questions

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

The tutorial I am working on has the following method defined. – (void)addBirdSightingWithSighting:(BirdSighting *)sighting

  • 0

The tutorial I am working on has the following method defined.

- (void)addBirdSightingWithSighting:(BirdSighting *)sighting {
    [self.masterBirdSightingList addObject:sighting];
}

The tutorial describes this as follows:

This method creates and initializes a new BirdSighting object by sending to the initWithName:location:date: method the name and location the user entered, along with today’s date. Then, the method adds the new BirdSighting object to the array.

There is a initWithName:location:date: method that is on the BirdSighting class which is my data model. The above method is added to the data controller which simply is adding a BirdSighting object to the masterBirdSightingList mutable array.

What I do not understand is that the tutorial says that BirdSighting object is sent to the initWithName:location:date: method when I do not see this?

  • Is this because the * in the (BirdSighting *) method parameter? I understand that the * is a pointer to a object, but does it create a new object and call its default init method? And just because I added the initWithName:location:date to the BirdSighting class, does it automatically become my default init method?
  • 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-15T22:00:10+00:00Added an answer on June 15, 2026 at 10:00 pm

    No magic there. You’re right. That line of code does not create or initialize a BirdSighting object.

    Added:

    You’ve discovered, perhaps sooner than many, that neither the Apple code nor docs are perfect. Sometimes they even have serious issues. When you encounter a dissonance, it’s best to trust your intuition and do some of your own testing.

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

Sidebar

Related Questions

A tutorial I'm working on has the following code with the following comment. I
I'm working through an iPhone tutorial ( link text and it has me put
I've been following the Django tutorial , and so far everything's been working as
I am currently working through the tutorial on Django's website. Upon completing the following
I'm following this tutorial which is working splendidly for has_many :through relationships. I've got
I am following tutorial of raywenderlich on the following blog: http://www.raywenderlich.com/2797/introduction-to-in-app-purchases Everything is working
I'm very new to backbone but I manage to get it working from tutorial.
I'm working through a tutorial right now on form validation, and I would like
I'm working through the NerdDinner MVC tutorial and came across this and was wondering
I'm working on this tutorial , which shows how to create an app with

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.