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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T15:37:11+00:00 2026-05-17T15:37:11+00:00

I want to access a inner object from a notification. I need to get

  • 0

I want to access a inner object from a notification. I need to get the key AVSystemController_AudioVolumeChangeReasonNotificationParameter.

If I call [sender object] I get this output. But if I call

[[sender object] userInfo]

I only get “unrecognized selector sent to instance”. Why is that?

NSLog(@”%@”, [sender object]) output:

NSConcreteNotification 0x157a30 {name = AVSystemController_SystemVolumeDidChangeNotification; object = AVSystemController: 0x1616c0; userInfo = {
    "AVSystemController_AudioCategoryNotificationParameter" = "Audio/Video";
    "AVSystemController_AudioVolumeChangeReasonNotificationParameter" = ExplicitVolumeChange;
    "AVSystemController_AudioVolumeNotificationParameter" = 1;
}}

If it is not possible to access userInfo, can I get the output of NSLog to do a string search?

  • 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-17T15:37:11+00:00Added an answer on May 17, 2026 at 3:37 pm

    Your output from NSLog actually looks like the output of

    NSLog(@"%@", sender);
    

    Are you sure you were calling [sender object]?

    object is often the Object that posted the notification. In your case most likely an object with class AVSystemController

    The userinfo can be accessed with

    [sender userInfo]
    

    So please try

    NSLog(@"%@", [sender userInfo]);
    

    BTW: If you try to map the function of the volume-buttons to some other function (for example “Take Photo”-Action) your app won’t be approved. Just in case.

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

Sidebar

Related Questions

I want to access the inner div and get it's value using Javascript. Would
I am using App Delegate object in different classes. I want access it in
I want to access http://localhost/myproject/web/app_dev.php in symfony from my http://localhost/myproject . I have it
I want to access a NSString from AppDelegate.m that is located inside ViewController.m .
I want to access the call stack at runtime in a Native C++ application.
I want to access a MySQL database directly from JavaScript code in an HTML
I have some JS you'll see below. I want the inner class object to
How do I get the current index from the carousel? In this case I
I want to have an access to another XML file in an inner class
In C++, an object refers to itself via this . But how does an

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.