- 博客(3)
- 资源 (4)
- 收藏
- 关注
转载 NSView淡入淡出
淡入动画: [NSAnimationContext beginGrouping]; [[NSAnimationContext currentContext] setDuration:2.0]; [[theSuperview animator] addSubview:theView]; [NSAnimationContext endGrouping]; 淡出动画:
2012-04-29 09:27:24 1239
原创 点击应用程序左上角关闭 程序退出
把window的消息委托给AppDelegate,再到AppDelegate.m里加入以下函数 - (BOOL)windowShouldClose:(id)sender //close box quits the app { [NSApp terminate:self]; return YES; }
2012-04-28 15:21:34 1229
原创 NSColor创建方法
ColorSync实用工具 NSColor *rgb = [NSColor colorWithDeviceRed:0.2471 green:0.2471 blue:0.2471 alpha:1];
2012-04-28 14:59:09 2126
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人