Objective-C ..
[2ch|▼Menu]
8:デフォルトの名無しさん
05/01/29 16:43:16
- free
{
    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



次ページ
最新レス表示
スレッドの検索
類似スレ一覧
話題のニュース
おまかせリスト
▼オプションを表示
暇つぶし2ch

4857日前に更新/229 KB
担当:undef