Re: NSMakePoint and such - what about memory allocation?
Re: NSMakePoint and such - what about memory allocation?
- Subject: Re: NSMakePoint and such - what about memory allocation?
- From: John Randolph <email@hidden>
- Date: Fri, 21 May 2004 15:15:35 -0700
On May 21, 2004, at 5:17 AM, Andreas Mayer wrote:
Am 21.05.2004 um 06:31 schrieb Shaun Wexler:
[object moveToPoint:(NSPoint){ x, y }];
What about NSMakePoint()?
Note that there's also NSMakeRect(), NSMakeSize(), etc.
I'll just mention that besides making points and rects, there all kinds
of handy functions and macros defined in the Foundation framework. I
can't tell you how often I've seen code that could be far smaller, and
more legible if people used functions like NSMidX() or NSInsetRect().
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.