Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextField drawing over itself?



On 30 sep 2006, at 17.36, Ivan Kourtev wrote:

The text field in the main window works just fine but the text field in the second window overwrites itself.

What is causing this behavior of a text field overwriting itself? I tried everything that I could come up with and the only solution I found was to enable the "Draw" switch for the background color of the text field. What (if anything) am I doing wrong?

Are you by any chance setting these values from a non-main thread?

<http://developer.apple.com/documentation/Cocoa/Conceptual/ Multithreading/index.html>

Nope, so far I only have one (the main) thread in my app.

If I move the button from the second window into the main window then I get the normal behavior (no need to draw button background). Does this make any sense? I cannot explain it.

-- ivan


















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

This email sent to email@hidden
References: 
 >NSTextField drawing over itself? (From: Ivan Kourtev <email@hidden>)
 >Re: NSTextField drawing over itself? (From: j o a r <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.