NSClassDescriptionNeededForClassNotification
NSClassDescriptionNeededForClassNotification
- Subject: NSClassDescriptionNeededForClassNotification
- From: Kevin Bracey <email@hidden>
- Date: Mon, 21 Mar 2011 21:45:21 +1300
Hi there,
I hope that I could "register class descriptions lazily", I like doing most things lazily.
But I can't find where or how to listen for the NSClassDescriptionNeededForClassNotification.
I've place [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector( registerClassDescription: ) name:NSClassDescriptionNeededForClassNotification object:nil]; in either my AppDelegate and my model object.
It just doesn't seem to fire when classDescriptionForClass: does not find a class.
I have fired it manually with [[NSNotificationCenter defaultCenter] postNotificationName:NSClassDescriptionNeededForClassNotification object:self]; and my
- (void)registerClassDescription:( NSNotification *)aNotification
{
NSLog(@"Looking for Notification" );
}
logs fine.
Can any shed some light on where and how to get notified of NSClassDescriptionNeededForClassNotification?
cheers
Kevin_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden