Re: Dock menu weirdness
Re: Dock menu weirdness
- Subject: Re: Dock menu weirdness
- From: Nick Müller <email@hidden>
- Date: Thu, 14 Feb 2002 19:11:57 +0100
On 14.02.2002 at 17:39 Uhr, Sebastian Krau_ wrote:
>
[super init];
Didn't you mean:
self = [super init];
>
numberOfItemsInDockMenu++;
>
>
for (i = 0; i < numberOfItemsInDockMenu; i++)
Didn't you set numberOfItemsInDockMenu to zero in init?
Where is that value changed?
If it is zero, your loop wouldn't have to do very much. If it is changed
elsewhere, why do you increment it and don't change the for-loop to:
for (i = 0; i <= numberOfItemsInDockMenu; i++)
HTH,
Nick
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.