• 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: Method with +
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Method with +


  • Subject: Re: Method with +
  • From: Bill Bumgarner <email@hidden>
  • Date: Fri, 19 May 2006 16:21:05 -0700

On May 19, 2006, at 3:25 PM, Lorenzo wrote:

    BOOL    *par = [MyClass GetParametersList];

// in the class MyClass
+ (BOOL*)GetParametersList
{
    BOOL    *parList = calloc(kTotTimeParam, sizeof(BOOL));
    int        i;

    for(i = 0; i < kTotTimeParam; i++){
        parList[i] = (i >= kTimeGenPosX && i <= kTimeGenVolu);
    }

    return parList;
}

You have allocated a chunk of memory. You are responsible for freeing it.


b.bum



_______________________________________________
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: Method with +
      • From: Lorenzo <email@hidden>
References: 
 >Method with + (From: Lorenzo <email@hidden>)

  • Prev by Date: [ANN] -- Ambrosia seeks Cocoa programmer
  • Next by Date: Re: KVO: programmatically created custom views not getting initial value notifications
  • Previous by thread: Method with +
  • Next by thread: Re: Method with +
  • Index(es):
    • Date
    • Thread