• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSObjectController's removeObject just a stub?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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

  • Prev by Date: Re: Retaining 2D array values
  • Next by Date: Observing Collections
  • Previous by thread: NSObjectController's removeObject just a stub?
  • Next by thread: Pointer to id
  • Index(es):
    • Date
    • Thread