Re: A question of style: Returning 'pairs'
Re: A question of style: Returning 'pairs'
- Subject: Re: A question of style: Returning 'pairs'
- From: "Stephen J. Butler" <email@hidden>
- Date: Wed, 2 Jul 2008 13:58:39 -0500
On Wed, Jul 2, 2008 at 1:48 PM, James Montgomerie <email@hidden> wrote:
> 2) Define a custom C struct (like NSRect, but with e.g. 'string' and
> 'offset' members) and return objects in it. Just like any other returned
> objects, the caller would be expected to retain them individually if it
> needed to keep them around.
This is what I would do. Sort of compliments NSRange and the functions
that return it.
_______________________________________________
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