Distributed postNotificationName
Distributed postNotificationName
- Subject: Distributed postNotificationName
- From: Trygve Inda <email@hidden>
- Date: Fri, 17 Nov 2006 08:58:59 +0000
- Thread-topic: Distributed postNotificationName
NSDictionary* userInfo = [NSDictionary dictionaryWithObjectsAndKeys:
@"someID", [NSNumber numberWithInt:7], @"someName", name, nil];
[[NSDistributedNotificationCenter defaultCenter]
postNotificationName:@"myNotification" object:nil userInfo:userInfo
deliverImmediately:YES];
This fails. If I remove the @"someID", [NSNumber numberWithInt:7] it works.
How can I send a number in the dict?
The docs say:
The notificationInfo dictionary is serialized as a property list, so it can
be passed to another task. In the receiving task, it is deserialized back
into a dictionary. This serialization imposes some restrictions on the
objects that can be placed in the notificationInfo dictionary. See XML
Property Lists for details.
NSNumber is on the approved list, so when doesn't it work?
If I only send NSStrings in the dict, all is well.
Thanks,
Trygve
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden