ARC Issue in new Sketch Sample Code
ARC Issue in new Sketch Sample Code
- Subject: ARC Issue in new Sketch Sample Code
- From: Gordon Apple <email@hidden>
- Date: Mon, 27 Aug 2012 15:11:13 -0500
- Thread-topic: ARC Issue in new Sketch Sample Code
- (void)setGraphicProperties:(SKTMapTableOwner *)propertiesPerGraphic {
NSMapEnumerator propertiesPerGraphicEnumerator =
NSEnumerateMapTable([propertiesPerGraphic mapTable]);
Shape *graphic;
NSDictionary *graphicProperties;
while (NSNextMapEnumeratorPair(&propertiesPerGraphicEnumerator, (void
**)&graphic, (void **)&graphicProperties)) {
. . . }
}
ARC chokes on the ³void**²s. Any ideas how to fix it?
This is an ongoing issue where they have made several changes to Sketch over
the years. Apparently, the idea is to use an object reference as a key,
without copying the object as NSMutableDictionary would do. It would be
nice if they would eat their own dog food and use more ARC examples.
_______________________________________________
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