Re: Bindings and Quartz Composer
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