So the compiler is warning you that you are effectively casting from
a type that does not conform to NSCopying, to a type that does
conform to NSCopying.
It's hard to say whether this is a problem or not. If the object
really is of the NSTextAttachmentCell class, there is probably
nothing to worry about.
In addition to what John says, if are sure that the cell is a
NSTextAttachmentCell (and it is in your case), you can safely cast it
to avoid compiler warning:
NSTextAttachmentCell *cell = (NSTextAttachmentCell *)[attachment
attachmentCell]; // <-- warning here
_______________________________________________
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