The filter names should not change, as long as you're using the filter name for identification and not the Display Name. I wouldn't use an index to that array, because not only could they add new filters but the order is implementation specific and may change :) On Feb 8, 2007, at 12:00 PM, Roland Torres wrote: I'd like to assign a unique (unchanging) identifier to each possible CIFilter type, so that a user can drag and drop filters from a GUI palette. When I use +filterNamesInCategories:nil, I get back an NSArray with all filters in all categories, about 100 in all. However, I suspect that the filter names in this list are subject to change from one OS release to the next, so I can't rely on a filter's index in this array for unique identification.
Is there a header file somewhere that has an enumerated list of the CIFilter names? Or is there a preferred way to do this?
Roland
_______________________________________________ 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
|