• 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: NSNotificationQueue Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSNotificationQueue Question


  • Subject: Re: NSNotificationQueue Question
  • From: Kyle Sluder <email@hidden>
  • Date: Wed, 20 May 2015 14:11:39 -0500

On Wed, May 20, 2015, at 12:59 PM, Jens Alfke wrote:
>
> > On May 20, 2015, at 10:18 AM, Richard Charles <email@hidden> wrote:
> >
> > This works but the problem is that there are undesirable side effects to running the runloop once when this call is made.
>
> Yup. Manually spinning the runloop in any non-custom mode is generally a
> bad idea.

I would revise this a bit… spinning the runloop in Default mode is
generally not advisable. Spinning in event tracking mode is far more
common. Spinning in a custom mode is definitely only for those who
really know what they're doing… if you start calling out to other code,
that code might be very confused when its timers don't fire.

--Kyle Sluder

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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


References: 
 >NSNotificationQueue Question (From: Richard Charles <email@hidden>)
 >Re: NSNotificationQueue Question (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Follow up to DatePicker Question
  • Next by Date: Stupid Cocoa question. How can you tell if the object you are looking at is a property or an ivar?
  • Previous by thread: Re: NSNotificationQueue Question
  • Next by thread: Re: NSNotificationQueue Question
  • Index(es):
    • Date
    • Thread