On 20/12/2010, at 14:39, Artemiy Pavlov wrote: > Thanks for the help, Siegfried! > > My actualy code is here: > > NSMutableArray *Array; > > -(void)awakeFromNib{ > > int x; > Array = [NSMutableArray array]; > > for(x=1;x<=9;x++){ > NSTextField *PatternRateLabel = etc. etc. > [Array addObject:PatternRateLabel]; > } > > } > > -(void)drawRect:(NSRect)rect{ > > [[Array objectAtIndex:0] setColor:...]; > > }
1.If you want to use the array somewhere else calling -retain on it may be a good idea 2.Again I think that [Array objectAtIndex:0] should return a NSTextField instance which does not has -setColor, or maybe has. Better to check documentation._______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com