Re: NSView behaves different on 10.4 vs 10.5?
Re: NSView behaves different on 10.4 vs 10.5?
- Subject: Re: NSView behaves different on 10.4 vs 10.5?
- From: Adam Gerson <email@hidden>
- Date: Mon, 19 Jan 2009 23:27:52 -0500
"For performance reasons, Cocoa does not enforce clipping among
sibling views or guarantee correct invalidation and drawing behavior
when sibling views overlap."
http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaViewsGuide/WorkingWithAViewHierarchy/chapter_5_section_5.html
On Mon, Jan 19, 2009 at 10:36 PM, Adam Gerson <email@hidden> wrote:
> I am trying to help someone solve a problem with their code. I did not
> write the code myself. As far as I can tell they have a custom NSView
> subclass that has some subviews. The view represents a hand of playing
> cards. The subviews themselves are custom NSButton subclasses that
> represent individual playing cards.
>
> The cards in the hand are drawn overlapping. Everything works fine
> under 10.5. Which is to say that when you click on a playing card
> nothing happens. We want NOTHING to happen when we click on a card.
> Under 10.4 when you click on a card the individual playing card
> appears to get redrawn on top of the other cards. You can see an
> example in this short screen capture:
>
> https://dl.getdropbox.com/u/30035/cards.swf
>
> I have tested this with a verity of built in views and buttons and
> cant recreated the mouseDown event causing the subview/NSButton to get
> redrawn ontop of other views or buttons layered beneath it.
>
> Could anyone shed some slight on what could be occurring?
>
> Thanks,
> Adam
>
_______________________________________________
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