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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:27:51+00:00 2026-05-24T17:27:51+00:00

In my app i’m using a users feeds to retrieve al the post done

  • 0

In my app i’m using a users feeds to retrieve al the post done by my app. I simply retrieve al the posts, and the compare on every post the id number of the app.

This work ok. But i’ve found a bug in this method. Since the application node isn’t always consistent. Normally when there is a post which is not done by an app, the entry in the dictionary just says (null), there isn’t any data. This doesn’t give any problems.

But there is an app which has other data in the this application node. This one has data in this node which specifically says (note the difference between () and <> ). But I can’t seem any way to check if the dictionary with that post has in it. i’ve tried the following:

NSDictionary *resultPost1 =[resultPost objectForKey:@"application"];
            NSLog(@"result%@", [resultPost objectForKey:@"application"]);
            if ([resultPost1 count] != 0) {

This one gives a sigabrt, with the following nslog before the sigabrt:

result(null)

result{
id = 1957711133323244365557378;
name = “app”;
}

result< null > (added space for visibility)

I’ve also tried isEqualtoString:@"< null>" Also without success.

It looks like sometimes, their is an dictionary in the application node, and sometimes a string .

Anyone has clue??? Thanks!!!

  • 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-24T17:27:52+00:00Added an answer on May 24, 2026 at 5:27 pm

    You will have to do some checking as you don’t have a guarantee as to what sort of object is returned from the dictionary.

    NSDictionary *resultPost1 = [resultPost objectForKey:@"application"];
    if ([[resultPost1 class] isKindOfClass:[NSDictionary class]) {
      //Treat as a dictionary
    }
    else if ([[resultPost1 class] isKindOfClass:[NSString class]) {
      //Treat as a string
    }
    else if ([resultPost1 isEqual:[NSNull null] || !resultPost) {
      //Treat as Null, note the json library Facebook uses might set
      //a json NULL into a NSNull object instead of nil
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My app has a select box for users to choose a venue. This select
app/assets/stylesheets/application.css *= require formtastic I get this error: rake assets:precompile /Users/Nerian/.rvm/rubies/ruby-1.9.3-rc1/bin/ruby /Users/Nerian/.rvm/gems/ruby-1.9.3-rc1@davinci/bin/rake assets:precompile:all RAILS_ENV=production
My app uses a WebRequest at certain points to get pages from itself. This
Our app (already deployed) is using an Access/Jet database. The upcoming version of our
App A has this BroadcastReceiver in its manifest (within <application>): And this receiver: public
My app is crashing with the error code: SIGABRT. Ive done a ton of
My app allows users to have custom subdomains, as in user1.domain.com. I am integrating
My app is crashing using iOS5 and iOS4.3 iPhone simulators in Xcode 4.2, the
My app compiles to about 80mb. I was under the impression this was quite
My app fails at this line of code: Dim objConnection As New SqlConnection(Application(ConnString)) My

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.