Re: iOS Category to match OS X category
Re: iOS Category to match OS X category
- Subject: Re: iOS Category to match OS X category
- From: Jens Alfke <email@hidden>
- Date: Tue, 07 Oct 2014 08:00:59 -0700
> On Oct 7, 2014, at 1:09 AM, Kevin Meaney <email@hidden> wrote:
>
> This category is not in any of the iOS frameworks as far as I can tell. So it looks like the only way I can get the same behaviour on iOS is using associated objects/references.
That sounds reasonable.
> I'm not comfortable with this solution, it feels too much like a hack so I'm asking a couple of questions before going ahead.
I don't think so; if anything, associated objects are the solution for the real hacks people used to use to do this :)
> Is there an alternative less hacky solution I've missed?
You can create a global weak-key NSMapTable that maps CIFilter objects to NSStrings.
—Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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