• 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
NSMutableArray selector not recognised
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSMutableArray selector not recognised


  • Subject: NSMutableArray selector not recognised
  • From: Aaron Wallis <email@hidden>
  • Date: Sun, 2 Oct 2005 00:56:57 +1000

Hey All,

im having some trouble with some code i've been working on.
For some reason, a variable [ a NSMutableArray ] isn't responding to its selectors.
Its all very strange.


heres the code:
NSMutableArray * tempRenders = [ currentRenders objectAtIndex: myLevel ];


QCRenderer * myRenderer = [[QCRenderer alloc] initWithOpenGLContext:_openGLContext pixelFormat:format file:qtzFile];

        if ( myPriority < 1 )
        {
            NSLog(@"low priority");
            [ tempRenders insertObject:myRenderer atIndex:0 ];
        }
        else
        {
            NSLog(@"standard or high priority");
            [ tempRenders addObject:myRenderer ];
        }

both lines :
[ tempRenders addObject: myRenderer];
and
[ tempRenders insertObject:myRenderer atIndex:0];
are returning "+[NSMutableArray addObject:]: selector not recognized" and "+[NSMutableArray insertObject:AtIndex:]: selector not recognized" respectivly...


does anyone have any ideas on what i may be doing wrong here?
im really lost.

Cheers !

_/Az.
_______________________________________________
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: NSMutableArray selector not recognised
      • From: Andy Lee <email@hidden>
  • Prev by Date: Re: Core Data question on calculating percentages
  • Next by Date: Re: NSMutableArray selector not recognised
  • Previous by thread: Re: Core Data question on calculating percentages
  • Next by thread: Re: NSMutableArray selector not recognised
  • Index(es):
    • Date
    • Thread