• 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
NSWindow from another thread.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSWindow from another thread.


  • Subject: NSWindow from another thread.
  • From: Steve Checkoway <email@hidden>
  • Date: Fri, 13 Jan 2006 20:41:26 -0800

I need to send a few messages to an NSWindow from a thread other than the main thread. Are any of these safe to do from the other thread or do I need to use performSelectorOnMainThread:withObject:waitUntilDone: for all of them?

alloc obviously not to a particular window
initWithContentRect:styleMask:backing:defer:
setExcludedFromWindowsMenu: not all that important
useOptimizedDrawing: I'm not entirely sure why I have this one any longer
setContentSize:
setTitle:
setContentView:
center
makeKeyAndOrderFront:


Some of these get called together so if they need to be called on the main thread would it make sense to declare a category on NSWindow and implement some method that calls the ones that can be called together?

- Steve

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSWindow from another thread.
      • From: j o a r <email@hidden>
  • Prev by Date: Trying to change nsoutline disclosure triangle
  • Next by Date: Re: Another newbie EXC_BAD_ACCESS in C
  • Previous by thread: Re: Trying to change nsoutline disclosure triangle
  • Next by thread: Re: NSWindow from another thread.
  • Index(es):
    • Date
    • Thread