Hey Graham, thanks for the reply. Would you mind glancing at some code
quickly? I've been banging my head against the wall on this one.

Here's my view that builds out a search looking control (extends NSView).
http://pastebin.com/m5fd70532

and here's the code that builds the scale 9 background
http://pastebin.com/m31770882

Here's what the search control looks like (notice the black border and
the cursor are solid black). The cursor doesn't blink.
http://imgur.com/V4yti.png

I've been messing around with my code, trying to figure out where the
problem is being introduced, and it seems it's with
NSDrawNinePartImage (see line 166) - as soon as I comment out that one
line of code, the textfield behaves as expected. But obviously the
background isn't drawn.

It seems like the NSDrawNinePart image is halting a thread that draws
the the NSTextField? When I mouse over and out of the text field
really quickly (triggering the drawRect method) the NSTextField then
draws correctly because it's being called multiple times, causing the
cursor to blink etc.

Argh.
Thanks for any help





On Sun, Sep 20, 2009 at 5:24 AM, Graham Cox <graham....@bigpond.com> wrote:
>
> On 20/09/2009, at 6:25 PM, aaron smith wrote:
>
>> Even when setting all those to false, I still get this 1px black border.
>
>
> It sounds like the graphics context composite mode is set incorrectly. Try
> looking into that.
>
> --Graham
>
>
>
_______________________________________________

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 arch...@mail-archive.com

Reply via email to