• 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: How can I get rid of this message?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can I get rid of this message?


  • Subject: Re: How can I get rid of this message?
  • From: Roland King <email@hidden>
  • Date: Thu, 02 Jul 2009 10:56:16 +0800

1) NSArray doesn't respond to addObject, you need NSMutableArray, where is your declaration of NutArray?

2) you're leaking singleNutData each time you make one (unless you are using Garbage collection or there's a release you're not showing

3) NutArray should really start with a lowercase letter if you're being standard about naming. NutArray would be a class, nutArray is an instance.

Agha Khan wrote:
I am adding a object (somedata)
    for (int i = 0; i < 7; i++)
    {
        SomeData* singleNutData = [[SomeData alloc] init];
        [NutArray addObject: SomeData];
    }

I am getting warning.
NSArray may not respond to -addObject.
(Message without a matching method signature will be assumed to return id and accept '...' as arguments.)


Am I am doing something wrong?
I am new to Apple development and how can I get rid of this message.

Thanks in advance.
Best regards
-Agha
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Re: How can I get rid of this message?
      • From: email@hidden
References: 
 >How can I get rid of this message? (From: Agha Khan <email@hidden>)

  • Prev by Date: Re: How can I get rid of this message?
  • Next by Date: Re: Dynamically loading a part of a Window in Cocoa
  • Previous by thread: Re: How can I get rid of this message?
  • Next by thread: Re: Re: How can I get rid of this message?
  • Index(es):
    • Date
    • Thread