Seems that if you call -[NSMenu indexOfItemWithTitle:] and pass an empty string (@””), it returns the index of a separatorItem if one is present, instead of -1 (not found), as I would expect. Very strange.
Seems that if you call -[NSMenu indexOfItemWithTitle:] and pass an empty string (@””), it returns the index of a separatorItem if one is present, instead of -1 (not found), as I would expect. Very strange.