- 博客(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 1230
原创 NSColor创建方法
ColorSync实用工具NSColor *rgb = [NSColorcolorWithDeviceRed:0.2471green:0.2471blue:0.2471alpha:1];
2012-04-28 14:59:09 2129
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人