I have a bit of old code someone else wrote. I get warnings since getBytes is deprecated since iOS 8. I don't know enough about this but would like to use the *getBytes:length:* to turn them off. How would I get a length from something like this? This is part of code I've bridged into a Swift project.
Thanks, Eric -(int) compareCBUUIDToInt:(CBUUID *)UUID1 UUID2:(UInt16)UUID2 { char b1[16]; * [UUID1.data getBytes:b1]; //<---* UInt16 b2 = [self swap:UUID2]; if (memcmp(b1, (char *)&b2, 2) == 0) return 1; else return 0; } _______________________________________________ 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