IB TextField Bindings and dragging text

2009-08-02 Thread Steve Cronin
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

Re: IB TextField Bindings and dragging text

2009-08-02 Thread Quincey Morris
On Aug 2, 2009, at 11:32, Steve Cronin wrote: 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

Re: IB TextField Bindings and dragging text

2009-08-02 Thread Andy Lee
On Aug 2, 2009, at 3:17 PM, Steve Cronin wrote: NSDictionary *bindDict = [self infoForBinding:@value]; [[bindDict objectForKey:@NSObservedObject] setValue:newString forKeyPath:[bindDict objectForKey:@NSObservedKeyPath]]; You should probably use NSObservedObjectKey and