Folks;
Found the answer:
NSDictionary *bindDict = [self infoForBinding:@"value"];
[[bindDict objectForKey:@"NSObservedObject"] setValue:newString
forKeyPath:[bindDict objectForKey:@"NSObservedKeyPath"]];
On Aug 2, 2009, at 1:32 PM, Steve Cronin wrote:
Folks;
I have several text fields bound to a mutable dictionary in the
window controller.
Works fine.
I want to provide drag-n-drop text snippets into these text fields.
I have all the drag-n-drop working just fine -- (uses custom text
fields and the window field editor)
Within the performDragOperation there is a [self setString:newString];
This, unsurprisingly, does NOT update the bindings mechanism.
Is there a way that I can 'flash' the bindings mechanism from within
the custom text field or do I need to build out something in the
delegate?
Any other notions appreciated!
Steve
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com