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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T21:28:40+00:00 2026-06-01T21:28:40+00:00

MyObject : NSObject @property (nonatomic, strong) NSString *name; @property (nonatomic, strong) NSArray *notificationsArray; I

  • 0
MyObject : NSObject
@property (nonatomic, strong) NSString *name;
@property (nonatomic, strong) NSArray *notificationsArray;

I have an array of MyObjects in my tableView that can be edited for name, time of the notification, etc. Currently, I have it setup so when the user presses Save, the current MyObject gets saved to my DataManager’s myObjectArray.

DataManager : NSObject
@property (nonatomic, strong) NSMutableArray *myObjectArray;

I call my method in the DataManager to loop through that MyObject instance to schedule the notifications for that MyObject.

I think this would be ok, until the user clicks on one of the MyObjects to edit the time and then I need to reschedule the notifications for that object only. I know you can get

[[UIApplication sharedApplication] scheduledNotifications];

But from this, I don’t know which notifications went for which object. So in this scenario, is it better to cancel all notifications for my entire app, and then loop through myObjectArray in the DataManager, for each MyObject instance, and schedule the notifications for each object that way?

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-06-01T21:28:41+00:00Added an answer on June 1, 2026 at 9:28 pm

    You can associate custom data with your notification using the userInfo property. Build it like this:

    UILocalNotification *notification = [[UILocalNotification alloc] init];
    notification.userInfo = [NSDictionary dictionaryWithObject:@"myNotificationName" forKey:@"name"];
    

    Then look it up like this:

     - (UILocalNotification *)notificationNamed:(NSString *)name {
    
        for (UILocalNotification *notification in [[UIApplication sharedApplication] scheduledLocalNotifications]) {
            NSString *notificationName = [notification.userInfo valueForKey:@"name"]; 
            if ([notificationName isEqualToString:name])
                return notification;
        }
        return nil;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

@interface MyClass : NSObject { MyObject *objecto; } I have an object that I
Imagine I have an entity: public class MyObject { public string Name { get;
I have the definition: @interface MyClass: NSObject { NSString *str; id delegate; } -(id)initWithStr:(NSString
I have an NSMutableArray called myObjectArray which contains and array of NSObjects called myObject.
I'm trying to create a class that can manage bidimensional array. I used the
I have an app (using retain/release, not GC) that maintains an NSArray instance variable,
In Obj-c when declaring a variable within @interface @interface: NSObject{ MyObject* myObject} @property (unsafe,
I have an NSObject that I am using to store/hold properties of an object,
Please look at this code: @interface myObject:NSObject -(void)function:(id)param; @end @implementation myObject -(void)function:(id)param { NSLog(@BEFORE);
i have a MyObject. when my program runs, i create a new MyObject self.myObject

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.