On Apr 20, 2014, at 13:22 , Dave <d...@looktowindward.com> wrote:

> This App was an iOS application and previously it handled manual memory 
> management - mostly using autorelease. I converted it by hand (didn’t use the 
> ARC coversion process). 

Ah, then ignore everything I said. :)

> if ([prop1 class] == [NSDictionary class])
>       self.propDict = self.pProp1;

You realize that this code is utterly wrong, yes? NSDictionary is a class 
cluster, and so there *are no* objects of class NSDictionary, only of 
subclasses, most of them private to the frameworks. And even if UIImage isn’t a 
class cluster, particular image objects may still be a subclass.

For this situation, ‘isKindOfClass:’ seem much more likely.

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to