Re: variable problem is driving me nuts
Re: variable problem is driving me nuts
- Subject: Re: variable problem is driving me nuts
- From: M Pulis <email@hidden>
- Date: Sat, 27 Oct 2012 17:18:34 -0700
clients is not (yet) a proper NSMutableArray..
Try one of the init methods within the NSMutableArray.
gary
On Oct 27, 2012, at 4:51 PM, H Miersch wrote:
hi.
in my current project i have this line in the header for the app
delegate:
NSMutableArray *clients;
in the app delegate itself, there's this line, in
applicationDidFinishLaunching:
clients = [[NSMutableArray alloc] init];
that works as expected. so far so good. but later, in another method
in the app delegate, there's this line:
int count = [clients count];
and by the time that line is executed, clients is nil. @property/
@synthesize or not makes no difference, ARC on or off makes no
difference. WTF? what am i doing wrong? can someone point me in the
right direction? thanks.
_______________________________________________
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