• 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
Detecting Changes in NSObjectController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Detecting Changes in NSObjectController


  • Subject: Detecting Changes in NSObjectController
  • From: J Nozzi <email@hidden>
  • Date: Wed, 21 Jul 2004 19:52:45 -0400

Hello, List:

I'm trying to track changes to a "project settings" NSMutableDictionary that is the contents of an NSObjectController in order to send updateChangeCount: to my NSDocument subclass. Why? I'm not exactly sure - it seemed the right thing to do at the time. ;-)

I bound an NSButton's (checkbox) value to the NSObjectController's selection.myButtonStateKey ..... and it works. I can save and restore this object's state just as expected. Unfortunately, I cannot seem to figure out how to get it to respond to updateChangeCount. It's not getting called.

The docs say of <NSEditor> protocol, "NSController provides an implementation of this protocol, as do the Application Kit user interface elements that support binding."

Well ... NSButton supports binding ... ;-)

What am I missing? Is there an easier way to catch changes to the content object?

- J
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Re: counting objects in array
  • Next by Date: What's using the processor during idle-time?
  • Previous by thread: Re: NSString or NSData
  • Next by thread: What's using the processor during idle-time?
  • Index(es):
    • Date
    • Thread