返回首页
当前位置: 主页 > Mac开发 > Cocoa >

小技巧:列出NSIndexSet的值

时间:2009-06-11 18:44来源:未知 点击:
以下是实现代码: unsigned index ; for (index = [indexSet firstIndex ]; index != NSNotFound ; index = [indexSet indexGreaterThanIndex : index]) { }
  

以下是实现代码:

unsigned index;

for (index = [indexSet firstIndex];

 index != NSNotFound; index = [indexSet indexGreaterThanIndex: index])  {

}

顶一下
(0)
0%
踩一下
(0)
0%
------分隔线----------------------------
最新评论 查看所有评论
发表评论 查看所有评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
用户名: 密码: 验证码:
推荐内容