Le 6 juil. 2010 à 21:59, Matt Neuburg a écrit : > On Tue, 6 Jul 2010 20:31:06 +0200, vincent habchi <[email protected]> said: >> BTW, another unrelated question. I have a method that takes an NSPoint as an > argument. I call it this way: >> >> [foo point:NSMakePoint(x, y)] >> >> and get an analyzer warning: "Pass-by-value argument in function call is > undefined". > > How about passing an NSValue? Surely valueWithPoint: must be good for > something... :) m.
Geez, I just realize I have been browsing the NSValue page for iPhone OS since the beginning, and iPhone OS (iOS) has no +valueWithPoint. I feel Apple should one way or an other (e.g. by changing the background) catch the attention of the reader about the OS that the current documentation page applies to (is that correct English? I wonder). So, okay, but why should I incur the penalty of creating an object while passing a structure (even by value) is perfectly valid since K&R C? I don't understand the meaning of the warning. Vincent_______________________________________________ Cocoa-dev mailing list ([email protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
