On Jun 11, 2009, at 12:04 PM, Florian Witteler wrote:

1) Would you use interface-builder files to lay out all the things like
- whole gametable with stacks of cards
- stacks of cards
- the card itself (background image and some icon with text)
or would you handle all the drawing by yourself?

You'd handle all the drawing by yourself.

2) How would you handle the dragging of a card (and the cards, which lie on top of this card)?

Override the -mouseDragged: method and do the drawing.

I don't want code from you, just some basic ideas of the general structure of such an app.


I'd start with a view that draws the game in progress & handles dragging, a controller that keeps the state of the game, and a model that includes objects representing cards. This might not be the best product for a beginner unless you're already familiar with drawing custom views from another platform.

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

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