NSMenu itemAtIndex: problem
NSMenu itemAtIndex: problem
- Subject: NSMenu itemAtIndex: problem
- From: "Tony" <email@hidden>
- Date: Sun, 10 Nov 2002 23:48:28 -0500 (EST)
What exactly does NSMenu's itemAtIndex: return when there is no item at that index?
I have a method to remove all items on a menu that looks like this:
while ([myMenu itemAtIndex: 0])
{
[myMenu removeItemAtIndex: 0];
}
But this results in a infinite loop.
Can someone tell me why?
Thanks.
The most personalized portal on the Web!
_______________________________________________
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.