• 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: Shaun Wexler <email@hidden>
  • Date: Fri, 21 May 2004 16:22:32 -0700

On May 21, 2004, at 3:15 PM, John Randolph wrote:

> 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().

I think the reason I had to switch to typecasting these (which is C99
feature, not C, as pointed out by John Stiles) what that GCC was
choking on them in both Project Builder and Xcode, using -o3.
--
Shaun Wexler
MacFOH
http://www.macfoh.com

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.


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>)
 >Re: NSMakePoint and such - what about memory allocation? (From: John Randolph <email@hidden>)

  • Prev by Date: Re: Cocoa Bindings - many people using them?
  • Next by Date: Re: Avoiding == and = mixup in if statements
  • 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