Re: IB TextField Bindings and dragging text
Re: IB TextField Bindings and dragging text
- Subject: Re: IB TextField Bindings and dragging text
- From: Steve Cronin <email@hidden>
- Date: Sun, 02 Aug 2009 14:17:46 -0500
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 (email@hidden)
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:
This email sent to email@hidden