• 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: Run Loop in a Cocoa application?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Run Loop in a Cocoa application?


  • Subject: Re: Run Loop in a Cocoa application?
  • From: Cameron Hayne <email@hidden>
  • Date: Wed, 20 Nov 2002 15:46:27 -0500

On 20/11/02 11:56 am, "Heiko Panther" <email@hidden> wrote:
> I found out that the run loop is probably not
> running after all; a call to
> CFShow(CFRunLoopCopyCurrentMode(CFRunLoopGetCurrent()));
> gives an output of (NULL), according to doc that means the loop is not
> running.

I tried putting the above CFShow statement at various places in one of my
Cocoa programs to see what is happening.
If I put it in ApplicationDidFinishLaunching, I get NULL.
If I put it in an action method (for a menu button), I get NULL.
But if I put it in a method invoked by a timer, I get
kCFRunLoopDefaultMode.

I don't claim to understand this, but maybe somebody else can explain.

--
Cameron Hayne (email@hidden)
Hayne of Tintagel
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Run Loop in a Cocoa application? (From: Heiko Panther <email@hidden>)

  • Prev by Date: Re: No launchable executable present?
  • Next by Date: placing windows behind finder icons
  • Previous by thread: Run Loop in a Cocoa application?
  • Next by thread: Re: Using IBInspectorManager's addInspectorModeWithIdentifier method
  • Index(es):
    • Date
    • Thread