Re: Bindings and Quartz Composer
Re: Bindings and Quartz Composer
- Subject: Re: Bindings and Quartz Composer
- From: Kevin Ballard <email@hidden>
- Date: Mon, 16 May 2005 18:36:35 -0400
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´RŸ%
D4…•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
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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