Changeset 472

Show
Ignore:
Timestamp:
03/06/2008 14:40:22 (6 months ago)
Author:
why
Message:
  • shoes/world.c: on osx, create the clipboard earlier. shoes was crashing upon close if no windows had been open (thus no clipboard created and crash on CFRelease.) this is thanks to jawbroken.
Location:
trunk/shoes
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/shoes/app.c

    r465 r472  
    15941594 
    15951595  HIViewFindByID(HIViewGetRoot(app->os.window), kHIViewWindowContentID, &app->slot.view); 
    1596  
    1597   if (PasteboardCreate(kPasteboardClipboard, &shoes_world->os.clip) != noErr) { 
    1598     INFO("Apple Pasteboard create failed.\n", 0); 
    1599   } 
    16001596#endif 
    16011597 
  • trunk/shoes/world.c

    r463 r472  
    5151  ruby_init(); 
    5252  shoes_ruby_init(); 
     53  shoes_world = shoes_world_alloc(); 
    5354#ifdef SHOES_QUARTZ 
    5455  shoes_app_quartz_install(); 
    5556  shoes_slot_quartz_register(); 
     57  if (PasteboardCreate(kPasteboardClipboard, &shoes_world->os.clip) != noErr) { 
     58    INFO("Apple Pasteboard create failed.\n", 0); 
     59  } 
    5660#endif 
    57   shoes_world = shoes_world_alloc(); 
    5861#ifdef SHOES_WIN32 
    5962  shoes_world->os.instance = inst;