• 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
NSView subclasses and app design
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: NSTextStorage and Insertion Point - repost
  • Next by Date: Re: Colors and NSUserDefaults
  • Previous by thread: NSTextStorage and Insertion Point - repost
  • Next by thread: Re: NSView subclasses and app design
  • Index(es):
    • Date
    • Thread