On 03/11/2009, at 11:58 AM, Chunk 1978 wrote:
having a bit of a time understanding this: ->
i think it's used to point to a member of a supplied argument of the
method?
- (void)method:(NSRange *)aRange ofSize:(NSSize *)aSize
{
aRange->location = 0;
aSize->height = 4.0;
}
-> is just a pointer. It even looks like one!
is it not possible to use dot notation here?
Yes, but since here the range is passed as pointer-to-range, you need
to dereference:
*aRange.location = 0;
aRange->location = 0 is clearer, IMO.
--Graham
_______________________________________________
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]