• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSView behaves different on 10.4 vs 10.5?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSView behaves different on 10.4 vs 10.5?


  • Subject: Re: NSView behaves different on 10.4 vs 10.5?
  • From: Kyle Sluder <email@hidden>
  • Date: Mon, 19 Jan 2009 23:30:10 -0500

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

  • Follow-Ups:
    • Re: NSView behaves different on 10.4 vs 10.5?
      • From: Adam Gerson <email@hidden>
References: 
 >NSView behaves different on 10.4 vs 10.5? (From: Adam Gerson <email@hidden>)
 >Re: NSView behaves different on 10.4 vs 10.5? (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: NSView behaves different on 10.4 vs 10.5?
  • Next by Date: NSData release seg fault. Whoops.
  • Previous by thread: Re: NSView behaves different on 10.4 vs 10.5?
  • Next by thread: Re: NSView behaves different on 10.4 vs 10.5?
  • Index(es):
    • Date
    • Thread