• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSMakePoint and such - what about memory allocation?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: NSMakePoint and such - what about memory allocation?
      • From: Shaun Wexler <email@hidden>
References: 
 >NSMakePoint and such - what about memory allocation? (From: Christoffer Lerno <email@hidden>)
 >Re: NSMakePoint and such - what about memory allocation? (From: Shaun Wexler <email@hidden>)
 >Re: NSMakePoint and such - what about memory allocation? (From: Andreas Mayer <email@hidden>)

  • Prev by Date: Re: screen capture, using SoftVDigX
  • Next by Date: Re: Changing Texture on a Window
  • Previous by thread: Re: NSMakePoint and such - what about memory allocation?
  • Next by thread: Re: NSMakePoint and such - what about memory allocation?
  • Index(es):
    • Date
    • Thread