FROM : Christiaan Hofman
DATE : Thu May 15 23:35:58 2008
You can force a KVO notification by sending a will/didChangeValueForKey:
pair of messages.
Christiaan
On Thu, May 15, 2008 at 11:10 PM, Trent Jacobs <<email_removed>> wrote:
> Hi all,
>
> In my core data app I have an entity which I chose to derive from a
> NSManagedObject class because I wanted to do some formatting and data
> manipulation on one of the attributes which I have bound to a NSTextView.
> The formatting is conditional based on a chechbox on the UI (in the
> preferences panel).
>
> What I need to do is get the NSTextView to know to reload the attribute
> from my managed object when the checkbox changes. in other words, it must
> know to refresh the data in Attribute X even though the data in Attribute X
> hasn't changed.
>
> I've searched for some attribute of the NSTextView which I can bind to the
> user defaults (the checkbox updates the user defaults) but no luck. I can't
> find any examples anywhere to help me out either.
>
> Can anyone point me to some documentation I may have missed?
>
> Thanks!
> _______________________________________________
> MacOSX-dev mailing list
> <email_removed>
> http://www.omnigroup.com/mailman/listinfo/macosx-dev
>
DATE : Thu May 15 23:35:58 2008
You can force a KVO notification by sending a will/didChangeValueForKey:
pair of messages.
Christiaan
On Thu, May 15, 2008 at 11:10 PM, Trent Jacobs <<email_removed>> wrote:
> Hi all,
>
> In my core data app I have an entity which I chose to derive from a
> NSManagedObject class because I wanted to do some formatting and data
> manipulation on one of the attributes which I have bound to a NSTextView.
> The formatting is conditional based on a chechbox on the UI (in the
> preferences panel).
>
> What I need to do is get the NSTextView to know to reload the attribute
> from my managed object when the checkbox changes. in other words, it must
> know to refresh the data in Attribute X even though the data in Attribute X
> hasn't changed.
>
> I've searched for some attribute of the NSTextView which I can bind to the
> user defaults (the checkbox updates the user defaults) but no luck. I can't
> find any examples anywhere to help me out either.
>
> Can anyone point me to some documentation I may have missed?
>
> Thanks!
> _______________________________________________
> MacOSX-dev mailing list
> <email_removed>
> http://www.omnigroup.com/mailman/listinfo/macosx-dev
>






Cocoa mail archive

