• 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
Re: IB TextField Bindings and dragging text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: IB TextField Bindings and dragging text
      • From: Andy Lee <email@hidden>
References: 
 >IB TextField Bindings and dragging text (From: Steve Cronin <email@hidden>)

  • Prev by Date: Re: NSURLConnection performance on iPhone
  • Next by Date: Re: incorrect checksum for freed object
  • Previous by thread: Re: IB TextField Bindings and dragging text
  • Next by thread: Re: IB TextField Bindings and dragging text
  • Index(es):
    • Date
    • Thread