Documentation of class that has sent this notification should contain information what type of notification is this and what does it send in its object.
You can access object sent using object
method:
ClassOfObjectSent *obj = [notification_you_have_received object];
Note that it is a pointer to an object, not a scalar value. If object is NSNumber
, you can get int
this way:
int i = [obj intValue];
If it's a NSString
you could use it directly or – safer – create your own copy (if you use Cocoa Touch or build non-GC Mac app, you'll have to release
the copy).
NSString *txt = [obj copy];