On 28/02/2008, at 10:54 AM, Kyle Sluder wrote:
On Wed, Feb 27, 2008 at 2:40 PM, Hank Heijink <[EMAIL PROTECTED]> wrote:I have a window with a custom view that occupies the entire window, sothe little resize corner in the lower right is within the bounds of the view. I noticed that when I draw into the window from the main thread (i.e. the usual way) that resize corner is redrawn when the view is redrawn. However, when I update the view from another thread, that doesn't happen. What am I missing?Do not use AppKit from any thread other than your main thread. It is not thread-safe.
This is incorrect. You can use AppKit from other threads; you just need to be careful. There's nothing wrong with what the OP was doing. See
<http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals/AddingBehaviortoaCocoaProgram/chapter_4_section_6.html#//apple_ref/doc/uid/TP40002974-CH5-DontLinkElementID_16 >
I suspect the problem with the resize corner is because it's drawn by the framework and the code that draws in the background is overwriting it. I'm not sure how you solve that.
- Chris
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]