Hi, I have never use it, and never look into this. Maybe a class method instead.
Op 21 mrt 2011, om 09:45 heeft Kevin Bracey het volgende geschreven: > 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 (Cocoa-dev@lists.apple.com) > > 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: > http://lists.apple.com/mailman/options/cocoa-dev/appledev%40xs4all.nl > > This email sent to apple...@xs4all.nl > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com