Re: Cocoa objects in Quartz Composer
Re: Cocoa objects in Quartz Composer
- Subject: Re: Cocoa objects in Quartz Composer
- From: Daniel Gobera <email@hidden>
- Date: Sun, 26 Nov 2006 13:51:44 -0800
Hi. Thanks for the response.
I think it's a shame that not many people are using QC, I've found
it's a great tool not only for screensavers, but for animated or
complex user interfaces (at least until core animation comes).
I just got a response on the QC list from Apple:
On Nov 26, 2006, at 8:14 AM, Pierre-Olivier Latour wrote:
This approach will not work as the Structure object in QC world is
not using KVC to extract data: it just wraps arrays or dictionaries.
For now what I had been doing is converting my entire array of custom
objects into dictionaries calling dictionaryWithValuesForKeys on each
object. Works fine, but may become expensive when I handle more
objects. I also tried "tricking" QC by implementing the objectForKey
method in my class (as if it was a dictionary), but it was never called.
Against my will I'll need to implement my custom object as a subclass
of NSMutableDictionary and store its properties as dictionary values.
Probably I could leave the object as is, with properties stored as
instance variables with accessor methods, and simply override the
objectForKey method. What would be the implications of this? Would I
need to override other querying methods as well (count, allKeys,
allValues, etc.)?
Daniel
On Nov 25, 2006, at 10:15 PM, Daniel Jalkut wrote:
On Nov 25, 2006, at 10:17 PM, Scott Stevenson wrote:
On Nov 25, 2006, at 10:09 AM, Daniel Gobera wrote:
Hi. I asked this question on the Quartz Composer list, but no one
answered, o I figured I would ask here.
So I think the issue is not a lot of people really know how use
this stuff. However, salvation is in sight. This article seems to
have an example of Structure Key Member:
<http://www.giantmike.com/articles/quartzcomposer.html>
Once you figure it out, post the solution to the list so you can
help people in the future.
- Scott
I think that's true - about not a lot of people using it. But I
also think that the "QC guy" at Apple seems to answer just about
every question on that list :) And maybe the lack of response had
something to do with it being a holiday week...
Daniel
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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