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: Wed, 21 Jan 2009 20:50:24 -0500
Hey Kyle,
Thanks for the suggestion. Can you tell me more about this idea. It
doesn't look like I can set an NSButton's NSButtonCell and
NSButtonCell isn't a child of NSView so I can't draw it directly as a
sub view. Once I have my sub class of NSButtonCell how do I render
into onto the screen.
Thanks,
Adam
On Mon, Jan 19, 2009 at 11:30 PM, Kyle Sluder <email@hidden> wrote:
> On Mon, Jan 19, 2009 at 10:45 PM, Graham Cox <email@hidden> wrote:
>> Using a separate view for each card is a bad idea anyway. Instead, just use
>> a custom object and get the main view to draw each one.
>
> I'd recommend abstracting out the card-drawing code into a subclass of
> NSButtonCell and using that cell to draw the hand inside an NSView
> subclass. Then you don't have to worry about sibling view clipping
> issues, and you minimize the number of views you have to boot.
>
> --Kyle Sluder
>
_______________________________________________
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