Objective-C
■ このスレッドは過去ログ倉庫に格納されています
0008デフォルトの名無しさん
05/01/29 16:43:16{
g_print("Freeing me\n");
gtk_main_quit();
return [super free];
}
- button_press_event:(id)anobj :(GdkEventButton* )event
{
g_print("Button %d was pressed\n",event->button);
return self;
}
- clicked:(id)anobj
{
printf("A thing was clicked, object is %#x\n",(unsigned int)anobj);
if(anobj == testBtn)
[testLabel set_text:"Hello,world!"];
else if(anobj == testBtn2)
[testLabel set_text:"clicked by test2"];
return self;
}
@end
■ このスレッドは過去ログ倉庫に格納されています