Thank you as well! -gt
On 9/20/12, douglas welton <douglas_wel...@earthlink.net> wrote: > George, > > I'm not sure that filenames exist for each composition in the QC repository. > From my point of view, that would be an opaque detail best kept out of the > API user's grasp. > > However, you can get the "name" associated with a composition by iterating > thru the returned array and grabbing the attribute for name. Something like > this... > > for ( composition in compositions ) > { > compositionName = [[composition attributes] objectForKey: > QCCompositionAttributeNameKey]; > // Do various other processing here... > [onlyNamesArray addObject: compositionName]; > } > > Disclaimer: Typed in e-mail. Also, you will probably need to check for a > nil returned value. > > regards, > > douglas > > > On Sep 20, 2012, at 1:17 PM, George Toledo wrote: > >> If I'm returning an array of objects from the composition repository, >> ala: >> >> compositions = [[QCCompositionRepository >> sharedCompositionRepository] >> compositionsWithProtocols:[NSArray >> arrayWithObject:QCCompositionProtocolImageFilter] andAttributes:nil]; >> >> How do I create an array of just the file names as strings? >> >> Best regards, >> George Toledo >> _______________________________________________ >> Do not post admin requests to the list. They will be ignored. >> Quartzcomposer-dev mailing list (Quartzcomposer-dev@lists.apple.com) >> Help/Unsubscribe/Update your Subscription: >> https://lists.apple.com/mailman/options/quartzcomposer-dev/douglas_welton%40earthlink.net >> >> This email sent to douglas_wel...@earthlink.net > > -- George Toledo gtole...@gmail.com www.georgetoledo.com www.controlfreak.tv The information contained in this E-mail and any attachments may be confidential. If you have received this E-mail in error, please notify us immediately by telephone or return E-mail. You should not use or disclose the contents of this E-mail or any of the attachments for any purpose or to any persons. _______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list (Quartzcomposer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com