Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Key path question



Hello,

I tried many possible paths given the suggestions and the output from "string_components". All throw an exception! Attached is a jpg of the patch. I hope attaching a 24K JPG is allowed.

If not, the patch is
2 "Constant Color->Crop"s going into a multiplexer.
The multiplexor goes to a billboard.

The selector for the multiplexor is tied to the value of "Structure Index Member" .

What should be done?


// [m_view setValue:[NSNumber numberWithFloat:.5] forInputKey:@"Target.0"];
// [m_view setValue:[NSNumber numberWithFloat:.5] forInputKey:@"Target.1"];
// [m_view setValue:[NSNumber numberWithFloat:.5] forInputKey:@"Target.component_0"];
// [m_view setValue:[NSNumber numberWithFloat:.5] forInputKey:@"Target.component_1"];
// [m_view setValue:[NSNumber numberWithFloat:.5] forInputKey:@"Target.0.value"];
// [m_view setValue:[NSNumber numberWithFloat:.5] forInputKey:@"Target.1.value"];
// [m_view setValue:[NSNumber numberWithFloat:.5] forInputKey:@"Target.component_0.value"];
// [m_view setValue:[NSNumber numberWithFloat:.5] forInputKey:@"Target.component_1.value"];

/*
[m_view setValue:[NSNumber numberWithFloat:.5] forInputKey:@"Target.value.0"];
[m_view setValue:[NSNumber numberWithFloat:.5] forInputKey:@"Target.value.1"];
[m_view setValue:[NSNumber numberWithFloat:.5] forInputKey:@"Target.value.component_0"];
[m_view setValue:[NSNumber numberWithFloat:.5] forInputKey:@"Target.value.component_1"];
[m_view setValue:[NSNumber numberWithFloat:.5] forInputKey:@"Target.value.0.value"];
[m_view setValue:[NSNumber numberWithFloat:.5] forInputKey:@"Target.value.1.value"];
[m_view setValue:[NSNumber numberWithFloat:.5] forInputKey:@"Target.value.component_0.value"];
[m_view setValue:[NSNumber numberWithFloat:.5] forInputKey:@"Target.value.component_1.value"];
*/

Hello,

I tried many possible paths given the suggestions and the output from "string_components". All throw an exception! Attached is a jpg of the patch. I hope attaching a 24K JPG is allowed.

If not, the patch is
2 "Constant Color->Crop"s going into a multiplexer.
The multiplexor goes to a billboard.

The selector for the multiplexor is tied to the value of "Structure Index Member" .

What should be done?


// [m_view setValue:[NSNumber numberWithFloat:.5] forInputKey:@"Target.0"];
// [m_view setValue:[NSNumber numberWithFloat:.5] forInputKey:@"Target.1"];
// [m_view setValue:[NSNumber numberWithFloat:.5] forInputKey:@"Target.component_0"];
// [m_view setValue:[NSNumber numberWithFloat:.5] forInputKey:@"Target.component_1"];
// [m_view setValue:[NSNumber numberWithFloat:.5] forInputKey:@"Target.0.value"];
// [m_view setValue:[NSNumber numberWithFloat:.5] forInputKey:@"Target.1.value"];
// [m_view setValue:[NSNumber numberWithFloat:.5] forInputKey:@"Target.component_0.value"];
// [m_view setValue:[NSNumber numberWithFloat:.5] forInputKey:@"Target.component_1.value"];

/*
[m_view setValue:[NSNumber numberWithFloat:.5] forInputKey:@"Target.value.0"];
[m_view setValue:[NSNumber numberWithFloat:.5] forInputKey:@"Target.value.1"];
[m_view setValue:[NSNumber numberWithFloat:.5] forInputKey:@"Target.value.component_0"];
[m_view setValue:[NSNumber numberWithFloat:.5] forInputKey:@"Target.value.component_1"];
[m_view setValue:[NSNumber numberWithFloat:.5] forInputKey:@"Target.value.0.value"];
[m_view setValue:[NSNumber numberWithFloat:.5] forInputKey:@"Target.value.1.value"];
[m_view setValue:[NSNumber numberWithFloat:.5] forInputKey:@"Target.value.component_0.value"];
[m_view setValue:[NSNumber numberWithFloat:.5] forInputKey:@"Target.value.component_1.value"];
*/

Cheers,
Dave

P.S.
My apologies to Pierre-Olivier. I keep forgetting to reply to the list, not you directly.






On Dec 5, 2005, at 10:09 AM, Pierre-Olivier Latour wrote:

The members have no known name, they are accessed in QC via "Structure Index Member". How would a UI control or even Obj-C code populate or bind to that value?

"port key".value."member"

What would the member name be?

Use the tooltips to figure out what the structure looks like inside QC and you will see what are the keys.

I think it should be "port key.value.x, "x" being the index


________________________________________________________
Pierre-Olivier Latour                            email@hidden
Quartz Composer Architect                Graphics & Imaging Team


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: Key path question (From: Giovannini <email@hidden>)
 >Re: Key path question (From: Pierre-Olivier Latour <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.