Re: NSClassDescriptionNeededForClassNotification
Re: NSClassDescriptionNeededForClassNotification
- Subject: Re: NSClassDescriptionNeededForClassNotification
- From: René v Amerongen <email@hidden>
- Date: Tue, 22 Mar 2011 20:00:56 +0100
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 (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
>
_______________________________________________
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