NSView subclasses and app design
NSView subclasses and app design
- Subject: NSView subclasses and app design
- From: Richard Schreyer <email@hidden>
- Date: Tue, 9 Jul 2002 13:45:39 -0700
I have a fairly complicated view I'm building made up of a couple
matrixes and a few NSButtons, and have some questions about the general
design patters of NSView subclasses and Cocoa.
There are really two options I see for setting up this view:
a) I create a NSView subclass to tie them together. I add the
NSMatrixes and NSButtons as subviews, and handle a bit of extra drawing
(such as borders and such), plus making sure everything stays in the
right place when the user resizes the window (Simple IB springs won't
work here).
b) Try and do everything above (except the drawing? make more views for
this) in a seperate non-NSView controller class.
Is there a single customary or suggested way of doing this kind of thing
in cocoa?
Thanks for your time,
Richard Schreyer
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.