Re: NSObjectController's removeObject just a stub?
Re: NSObjectController's removeObject just a stub?
- Subject: Re: NSObjectController's removeObject just a stub?
- From: Richard Wolf <email@hidden>
- Date: Mon, 2 Jan 2006 16:32:07 -0600
Just a follow-up ...
A well-known soul in the Cocoa community suggested that I subclass
NSObjectController and implement removeObject and observe the
results. To be honest, I was kind of thinking of doing something
like that ... probably should have before I posted to the list.
Anywho, I did override removeObject:
- (void)removeObject:(id)object
{
[super removeObject:object];
[self setContent:nil];
NSLog(@"My removeObject got called");
return;
}
and that makes my subclass of NSObjectController work just as
advertised in the documentation. So I guess I have a bug to report.
It's unlikely this bug would matter in production code ...
still ... :) And at least this is fixable. :)
Thanks guys!
_______________________________________________
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