From: <ho...@us...> - 2007-02-23 09:51:26
|
Revision: 9880 http://svn.sourceforge.net/bibdesk/?rev=9880&view=rev Author: hofman Date: 2007-02-23 01:51:27 -0800 (Fri, 23 Feb 2007) Log Message: ----------- indexofMenuWithTagret can return -1 of not found. Modified Paths: -------------- skim/SKApplication.m Modified: skim/SKApplication.m =================================================================== --- skim/SKApplication.m 2007-02-23 04:02:02 UTC (rev 9879) +++ skim/SKApplication.m 2007-02-23 09:51:27 UTC (rev 9880) @@ -51,7 +51,7 @@ @implementation NSMenu (SKExtensions) - (int)indexOfItemWithTarget:(id)target { int index = [self numberOfItems]; - while (index--) + while (--index) if ([[self itemAtIndex:index] target] == target) break; return index; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |