Re: NSRectArray by reference
Re: NSRectArray by reference
- Subject: Re: NSRectArray by reference
- From: Keith Duncan <email@hidden>
- Date: Sun, 9 Sep 2007 19:53:40 +0100
Granted that letting the function assume there is a enough space in
the provided array isn't a good design decision but this is a
private internal function that is only going to be called in -
drawRect and -mouseDown: so I can get away with it.
Nevermind, I've become a little obsessed with passing and returning
arguments by reference lately. I've renamed the function to
CreateCalendarRowRects and simply malloc'ing the memory in there then
returning the array pointer.
- Keith
_______________________________________________
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