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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:24:30+00:00 2026-05-22T22:24:30+00:00

I have a console message that appears to be triggered by apparently unrelated events.

  • 0

I have a console message that appears to be triggered by apparently unrelated events.

The message states:

snarfed from ivar layout: [propertyName] = [constantString]

Where [propertyName] is the name of a property to which I set the value of a string constant [constantString].

What causes this message and what does it means?

  • 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-22T22:24:31+00:00Added an answer on May 22, 2026 at 10:24 pm

    I also ran into this issue recently. I was able to fix my specific issue, but I don’t think that is exactly what the questioners are running into, since my issue was only being exposed in VoiceOver mode. As such, I’ll offer thoughts on what I think is generally occurring and then I’ll speak to my specific issue.

    As for the general issue, I think that the Apple Framework is deciding to look through all of the ivars of a particular class in order to extract some information that it wants, but that is not provided by other parts of the UI element. This seems a little bizarre to me, but that is what I encountered.

    So, to continue with the general case, and in answer to the initial question. If you’re like me, then your property name is probably the same as your ivar. Try explicitly defining a getter method for that property. Then, set a breakpoint within that getter if you will be returning a non-nil value. Look at the stacktrace and that should tell you which piece of the apple frameworks is deciding to loop through your ivar layout in order to get the information it wants. (If you’re not using the the same name for your property and ivar, then just define a property and getter with the ivar name and do the same thing with the breakpoint.)

    My specific case was for a Custom Table Cell (like one of the commenters). In that cell,I had a property that was the same name as its ivar. I also had an explicitly defined getter for that property. I also referenced that custom table cell from the Nib file. So, it looked something like this:

    class CustomTableViewCell:UITableViewCell
    {
        NSString *s ; 
    } 
    @property(nonatomic,retain) NSString *s ; 
    

    and in the implementation:

    @synthesize s ; 
    -(NSString *)s 
    {
        if( !s ) 
            return self.reuseIdentifer ; 
        return s ; 
    }
    

    I put a breakpoint in the return self.reuseIdentifier line,and that showed me a stacktrace from the Accessibility functions. The stacktrace showed my method being called by an Apple internal method that was looping through all of my ivars looking for something to use as the accessibilityLabel for my table cell. The name of the selector is ‘_accessibilityRetrieveTableViewIvarsText’.

    To make matter worse, in my case, this was not just a debugger issue, it was messing up my Accessibility interface by using the wrong thing as the accessibilityLabel.

    I came up with 3 fixes for my specific problem:

    1) I added a value for the accessibilityLabel for the table cell inside the Nib. This satisfied the Apple framework to the point where it did not go searching through my ivars. This was not the solution I went with, however, because I did not want a static accessibility label.

    2) I subclassed my CustomTableViewCell with an empty implementation and interface, and I used that as my Table cell class inside the Nib. This solved the problem because the Apple Framework looped through that class’s ivars, of which there were none, and there weren’t any values to ‘snarf’. I did not use that solution either, but it might be the best one because it keeps Apple’s frameworks from inspecting my ivars.

    3) The solution I decided on was to make my ivar private and to define the property with a different name. That seems to be the standard way that a lot of folks use properties. This is what it looks like:

    class CustomTableViewCell:UITableViewCell
    {
        @private
            NSString *_s ; 
    }  
    @property(nonatomic,retain) NSString *s ; 
    

    and in the implementation:

    @synthesize s = _s ; 
    -(NSString *)s  
    {
        if( !_s ) 
            return self.reuseIdentifer ; 
        return _s ; 
    }
    

    This fixed the problem because nil is returned when Apple inspects the ivar, and, thus, nothing is ‘snarfed’. I’m still not sure whether this or #2 is more appropriate.

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

Sidebar

Related Questions

I have one application that prints messages from Test.exe in console .My java program
I have this code inside a iframe: window.addEventListener('message', function(e){ if(e.data == 'test') console.log(e); },
In C++, a console application can have a message handler in its WinMain procedure,
I have console app A that references another console app B. B app has
I have console application. In that i have some process that fetch the data
I have a console application that uses a number of command line switches to
Im running a console app that loads a dll and calls a method from
I have 2 powershell scripts that I execute from c# which I'm using to
I have what seems like a weird (non?) issue with UIViewController. It appears that
i have created a very simple console application in vb.net that emails me some

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.