• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: pb with awakeFromNib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pb with awakeFromNib


  • Subject: Re: pb with awakeFromNib
  • From: Matt Neuburg <email@hidden>
  • Date: Tue, 19 Jun 2007 07:53:59 -0700
  • Thread-topic: pb with awakeFromNib

On Tue, 19 Jun 2007 12:59:42 +0200, "julien ricard" <email@hidden> said:
>hi,
>
>I want to launch a quite long process automatically when my cocoa
>application is opened. I launch it in awakeFromNib, but the window
>does not open before my process is finished. I'd like my application
>to be usable while that process is running. How can I do it?

You've got two different problems here. One is that you are launching the
process too soon:

<http://developer.apple.com/documentation/Performance/Conceptual/LaunchTime/
Articles/LaunchTips.html>

The other is that you are blocking on the main event loop, which makes the
application unresponsive:

<http://developer.apple.com/documentation/Cocoa/Conceptual/EventOverview/Eve
ntArchitecture/chapter_2_section_2.html>

<http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals
/CoreAppArchitecture/chapter_7_section_3.html>

<http://developer.apple.com/documentation/Cocoa/Conceptual/Multithreading/in
dex.html>

m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Reset/Cancel an NSSearchField
  • Next by Date: Re: making a screen dump app
  • Previous by thread: Re: pb with awakeFromNib
  • Next by thread: @synchronized([someObject class])
  • Index(es):
    • Date
    • Thread