• 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
When does Cocoa fall apart? (Run loops)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

When does Cocoa fall apart? (Run loops)


  • Subject: When does Cocoa fall apart? (Run loops)
  • From: Chris Idou <email@hidden>
  • Date: Tue, 21 Oct 2008 21:05:43 -0700 (PDT)

I noticed with the below discussed isEnabled bindings problem that if I do:

[objectController performSelectorOnMainThread:@selector(setContent:) withObject:title waitUntilDone:NO];

instead of.....

[objectController setContent:title];

then it seems to start behaving better.

I think I've noticed this once or twice in the past, that things that don't seem to work as they should, start working when you throw them on the run loop. In this case, the isEnabled bindings status of toolbar items seems to start working when I do certain things on the Run loop instead of immediately.

Have people noticed these situations? What causes them, and when should I look out for it?


Re: Toolbar buttons and isEnabled binding

> From: Chris Idou <email@hidden>
> Subject: Toolbar buttons and isEnabled binding
> To: email@hidden
> Date: Tuesday, October 21, 2008, 7:04 AM
> I seem to be getting erratic behaviour from toolbar button
> isEnabled bindings. In some scenarios they don't seem to
> work correctly.
>
> I've tried putting the exact same binding criteria on
> some regular buttons just to see what happens, and they seem
> to work correctly when the toolbar buttons don't.
>
> Has anyone else noticed this?



_______________________________________________

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

  • Follow-Ups:
    • Re: When does Cocoa fall apart? (Run loops)
      • From: "Raphael Sebbe" <email@hidden>
  • Prev by Date: Re: keyUp falling through to window when sheet dismissed
  • Next by Date: Re: looking for reference to a dictionary
  • Previous by thread: Re: How to prompt for admin rights in Cocoa-Python?
  • Next by thread: Re: When does Cocoa fall apart? (Run loops)
  • Index(es):
    • Date
    • Thread