• 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
Assigning to property with 'readonly' atribute not allowed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Assigning to property with 'readonly' atribute not allowed


  • Subject: Assigning to property with 'readonly' atribute not allowed
  • From: Fernando Aureliano <email@hidden>
  • Date: Mon, 27 Jun 2011 23:52:39 -0300

I' doing the implementation of AQGridView, and everything was going well.

But, now I'm getting the error below.


- (AQGridViewCell *) gridView: (AQGridView *)inGridView cellForItemAtIndex:
(NSUInteger) index;
{
 MagazineCell *cell = (MagazineCell *)[inGridView
dequeueReusableCellWithIdentifier:@"cell"];
if (!cell) {
 cell = [MagazineCell cell];
*cell.reuseIdentifier = @"cell";*
                //Assigning to property with 'readonly' atribute not allowed
 }
cell.backgroundColor = [UIColor clearColor];
cell.selectionStyle = AQGridViewCellSelectionStyleGlow;
  cell.edicaoLabel.text = [[edicoesArray objectAtIndex:index] name];
        cell.dataLabel.text = [[edicoesArray objectAtIndex:index] name];
 return cell;
}


I tried to do this on head file

   @property(nonatomic, readwrite) NSString * reuseIdentifier;


I also tried


@property(nonatomic, assign) NSString * reuseIdentifier;


But still no work.

I downloaded de example of project '*Actors for Netflix*'
https://github.com/adrianco/Actors-for-Netflix-on-iPad/

And this code have the same problem when I try to build, and the
pre-processor also see it.

This example dont declare the property on header of class file, I tried it
on my project as an attempt to fix the problem.

Someone can see the what is the problem?

thanks!

--
*Fernando Aureliano*
_______________________________________________

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: Assigning to property with 'readonly' atribute not allowed
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: Re: CocoaTouch; Float Button on UITableView?
  • Next by Date: Re: Caching Streaming video
  • Previous by thread: Re: CocoaTouch; Float Button on UITableView?
  • Next by thread: Re: Assigning to property with 'readonly' atribute not allowed
  • Index(es):
    • Date
    • Thread