(no subject)
(no subject)
- Subject: (no subject)
- From: Adam Johnson <email@hidden>
- Date: Thu, 26 Jan 2006 21:52:59 -0500
-(id)init;
{
items = [[NSMutableArray array] retain];
[items addObject:[[NSImage alloc] init]];
[items addObject:[[NSImage alloc] init]];
[items addObject:[[NSImage alloc] init]];
[items addObject:[[NSImage alloc] init]];
return self;
}
-(void)doSomethingTrivial:(id)sender;
{
NSEnumerator *enumerator = [items objectEnumerator];
NSImage *aCell;
while(aCell = [enumerator nextObject]);
{
int index = [items indexOfObject:aCell];
NSLog(@"%i %i",[items indexOfObject:aCell],[items count]);
}
}
The NSLog() prints something in the 4 billion ballpark. Also, the
enumeator only goes through the first object. What am I doing wrong?
--Adam Johnson
_______________________________________________
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