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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T05:31:18+00:00 2026-05-20T05:31:18+00:00

This is in the context of using Three20 but probably relates more to something

  • 0

This is in the context of using Three20 but probably relates more to something I’m not getting aout Objective C. I’m in a TTTableLinkedItemCell and simply trying to assign a property called readAt.

//_item.readAt = [[NSDate alloc] init];

“Request for member ‘readAt’ in something not a structure or union”

[_item setReadAt: [[NSDate alloc] init]];

Works as expected. Then…

((NotificationItem *)_item).readAt = [[NSDate alloc] init];

Also works. It seems that I need to cast to use dot notation, but Obj-C will happily pass along messages blindly? Is this the correct rule I’m taking away from this?

PS: _item, per the Three20 API, is: TTTableLinkedItem * _item.

  • 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-05-20T05:31:18+00:00Added an answer on May 20, 2026 at 5:31 am

    The compiler needs to know the object’s type in order to use dot notation to access a property — casting is only necessary if the object wasn’t statically typed to begin with. Message sends are valid for any object, so as long as the variable has some object type, it will work.

    So why does it need to know the static type for a property accessor? Because a property can designate any method to be the getter or the setter, not just the default pair of foo and setFoo:, so the compiler needs to know what property this is in order to generate the correct accessor calls.

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

Sidebar

Related Questions

Context Using Ruby I am parsing strings looking like this: A type with an
I am using SQLite in a Java application through Zentus . In this context
I am using this jQuery context popup menu extension: http://www.trendskitchens.co.nz/jquery/contextmenu/ This context menu is
I am using http://www.gnu.org/software/gnuprologjava/ to perform prolog stuff from Java application. In this context
I am trying out the record outgoing call using mic written this code but
In the context of this question link text is possible from a Controller that
This is in the context of Automatic Differentiation - what would such a system
The situation is this: You have a Hibernate context with an object graph that
Update: Please read this question in the context of design principles, elegance, expression of
I have been searching for info on this to no avail. The context of

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.