• 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
Question regarding getRectsBeingDrawn:'s constant array pointer argument (const NSRect **)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question regarding getRectsBeingDrawn:'s constant array pointer argument (const NSRect **)


  • Subject: Question regarding getRectsBeingDrawn:'s constant array pointer argument (const NSRect **)
  • From: Eric <email@hidden>
  • Date: Tue, 9 May 2006 17:37:10 -0700

The method signature is this:

- (void)getRectsBeingDrawn:(const NSRect **)rects count:(int *)count

Which according to the documentation, should be invoked as:

const NSRect *rects;
int count, i;
[self getRectsBeingDrawn:&rects count:&count];

This implies that getRectsBeingDraw will allocate an array of NSRect and
assign it to rects.

My question is, since I didn't allocate the array of NSRect, should I
deallocate the rects array after use, or will Cocoa take care of that for
me?

Thanks
Eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Question regarding getRectsBeingDrawn:'s constant array pointer argument (const NSRect **)
      • From: "Shawn Erickson" <email@hidden>
  • Prev by Date: Re: Does a NSView's bounds.size always equal to frame.size?
  • Next by Date: NSOpenPanel causing hang on subsequent NSTask
  • Previous by thread: Re: Dynamic data model in Core Data
  • Next by thread: Re: Question regarding getRectsBeingDrawn:'s constant array pointer argument (const NSRect **)
  • Index(es):
    • Date
    • Thread