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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:28:13+00:00 2026-06-13T09:28:13+00:00

Ive set up a notification centre with the following code in a class called

  • 0

Ive set up a notification centre with the following code in a class called ConnectionController

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(aChangeCalendarMethod:) name:@"updateCalendar" object:nil];

And have a sender in another class (MonthFieldValidator)

[[NSNotificationCenter defaultCenter] postNotificationName:@"updateCalendar" object:self];

MonthFieldValidator has a property of NSString type called month which I want to pass the value of back to connection controller.

All I seem to be able to do is get this

Printing description of testObject:
(NSObject *) testObject = 0x4055c00000000000

And the object doesn’t have the month property (or at least that I can access).

Presumably I will have to useruser info?

  • 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-13T09:28:13+00:00Added an answer on June 13, 2026 at 9:28 am

    Do this:

    [[NSNotificationCenter defaultCenter] postNotificationName:@"updateCalendar" object:yourMonthStringHere];
    

    Method that will be called is:

    -(void)aChangeCalendarMethod:(NSNotification*)notification
    {
       NSString *strMonth = (NSString *)[notification object]; //retrieve passed string like this
       //continue other code
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I manually set a position with some code? Ok Ive got some
I want to set up something like this in my environment. [[NSUserDefaultsController sharedUserDefaultsController] addObserver:self
Ive set my fonts specifically as follows * {font-size: 1em;} html {font-size: 125%;} body{font-size:
I've got some models set up like this: class AppGroup(models.Model): users = models.ManyToManyField(User) class
I've just set up Google Checkout PHP Sample code (1.3.1) with no changes except
Currently I have use the following approach to setup change notification on any of
I've set up a PHP IPN Paypal notification handler on my site to notify
I've got the following variable set in my cygwin $HOME/.bashrc PATH=/bin:/usr/sbin:/cygdrive/c/Program Files/Java/jdk1.6.0_26/bin:$PATH Problem is
I have a Notification which is refreshed (i.e. sent) every three seconds. I've set
I am adding two buttons to a notification in my app that is set

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.