• 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: Bindings and Quartz Composer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bindings and Quartz Composer


  • Subject: Re: Bindings and Quartz Composer
  • From: Julian <email@hidden>
  • Date: Mon, 16 May 2005 18:53:29 -0400

Hum, that didn't help. I really don't yet get bindings. I guess in all simplicity what I need to do is set a published port value from a .qtz published port via the contents of an NSString. I have the published port, I can set the value from an NSTextField, but i need to do this programatically from an NSString. Surely there must be some sample code that reads a plist and pipes it into an input... urgh


~J

On May 16, 2005, at 6:36 PM, Kevin Ballard wrote:

This is not a situation for bindings, it's a situation for Key- Value Coding. Try

[theData setValue:theData forKey:@"XML"]

On May 16, 2005, at 6:13 PM, Julian wrote:


ok I have a qtz with a published port key named "XML". ALl is good and if I bind that to an NSTextField I can past my xml data and press enter and the rendering updates. However this is not the case I wish to use. I am fetching data from a url, so my question is, how can I bind an NSString to this input? Here is what I have so far.


NSURL *theURL = [[NSURL alloc] initWithString:@"http:// blah.com:4321/debug?hash_info=º þ¢„Hƒ³Ísv% B4RŸÔ…•GÁ"];
NSString *theData = [[NSString alloc] initWithContentsOfURL:theURL];
[theURL release];
/** here is where I would like to bind the data to an nsstring and update the rendering */
//[theData bind:@"value" toObject:_quartzController withKeyPath:@"XML.value" options:nil];
[theData release];



-- Kevin Ballard email@hidden http://www.tildesoft.com http://kevin.sb.org



_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Bindings and Quartz Composer
      • From: mmalcolm crawford <email@hidden>
References: 
 >Bindings and Quartz Composer (From: Julian <email@hidden>)
 >Re: Bindings and Quartz Composer (From: Kevin Ballard <email@hidden>)

  • Prev by Date: Re: Bindings and Quartz Composer
  • Next by Date: Re: Bindings and Quartz Composer
  • Previous by thread: Re: Bindings and Quartz Composer
  • Next by thread: Re: Bindings and Quartz Composer
  • Index(es):
    • Date
    • Thread