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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:08:59+00:00 2026-06-08T12:08:59+00:00

I received the notification so I handle it like so -(void) dateSelected:(NSNotification *) notification

  • 0

I received the notification so I handle it like so

-(void) dateSelected:(NSNotification *) notification
{
NSLog(@"Value: %@", [[notification userInfo] valueForKey:@"date"] );
NSMutableDictionary * dateDict = [[NSDictionary alloc] initWithDictionary:[notification userInfo]];
NSLog(@"The Date Dict: %@", dateDict );
}

The logs I get are

2012-07-20 11:32: TestApp[10701:40b] Value: (null)
2012-07-20 11:32: TestApp[10428:40b] The Date Dict: {
}

If I NSLog out the notification itself it looks valid:

2012-07-20 11:33: TestApp[10457:40b] Notification: NSConcreteNotification 0x16629460 {name = date_selected_; object = {
date = 20120705;
}}

I’ve done this before and its worked.

I’m sure its simple, but today I cannot see the issue.

Any help would be appreciated.

Thanks,
-Code

  • 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-08T12:09:01+00:00Added an answer on June 8, 2026 at 12:09 pm

    It’s pretty simple, look at your log output … There’s no userInfo set in your notification. There’s just name and object. Compare your output with this one …

    NSNotification *notification = [NSNotification notificationWithName:@"NAME"
      object:self
      userInfo:[NSDictionary dictionaryWithObjectsAndKeys:@"obj", @"key", nil]];
    NSLog( @"NOT: %@", notification );
    

    …

    NOT: NSConcreteNotification 0x73586f0 {name = NAME;
    object = <CMAppDelegate: 0x884a4e0>; userInfo = {
        key = obj;
    }}
    

    … see the difference? There’s name, object, but also userInfo in log output.

    So the answer is – your notification does not contain userInfo dictionary. Look at code which fires this notification.

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

Sidebar

Related Questions

I'd like to use boost::signals2 to handle event notification in my C++ app. I'm
I'm trying to display a simple notification when a C2DM message is received. Services
I received an e-mail which contained a link that looked like it was to
I would like to handle out of memory errors in iPhone to execute logic
I have a native api function which looks like: DWORD WINAPI WlanRegisterNotification( __in HANDLE
I am trying to make a notification window like Outlook uses when you receive
Doing research to try and pick a direction for notification types. I'd like to
How can I receive notification of system boot on the installed windows phone 7.5
I am successfully able to receive push notification on my device which is of
I am using notifications in my Android application. Whenever i receive a notification, i

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.