Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSObjectController's removeObject just a stub?



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >NSObjectController's removeObject just a stub? (From: Richard Wolf <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.