【发布时间】:2012-04-30 11:05:45
【问题描述】:
NSLog(@"ss")execution.为什么事件没有运行?
-(void)mouseUp:(NSEvent *)theEvent{
switch (self.tag) {
case 3:
NSLog(@"ss");
[self setAction:@selector(openurl:)];
break;
default:
break;
}
}
- (IBAction)openurl:(id)sender {
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"http://www.google.com/"]];
}
【问题讨论】:
标签: objective-c macos cocoa xcode4.3