notificationWithName :object:
Returns a new notification object with a specified name and object.
Parameters of [NSNotification notificationWithName]
- aName
- The name for the new notification. May not be
nil
. - anObject
- The object for the new notification.
Example of [NSNotification notificationWithName]
NSDictionary* dict = [NSDictionary dictionaryWithObjectsAndKeys:
anItemID, @"ItemID",
[NSString stringWithFormat:@"%i",q], @"Quantity",
[NSString stringWithFormat:@"%@",[NSDate date]], @"BackOrderDate",
[NSString stringWithFormat:@"%@", [NSDate date]],@"ModifiedOn",
nil];
[[NSNotificationCenter defaultCenter] postNotification:[NSNotification notificationWithName:@"InventoryUpdate" object:dict]];