• 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: Creating NSViews with code.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating NSViews with code.


  • Subject: Re: Creating NSViews with code.
  • From: Coleman Nitroy <email@hidden>
  • Date: Thu, 17 Feb 2005 09:13:22 -0500

I think it's a bad idea to (ab)use tab views like this. Whatever the number of configurations (N), you will have (N * N-1) wasted instances of tab view UI content views. I agree with the proposition that one should not worry about performance until it's measurable, but in this case it's really just as easy to have a blank slate into which you set a view loaded from a specific nib.

A tab view is IMO an excellent UI element for something like this. It basically provides all the subview-management for you, so you don't have to write any code to do that.

You guys both pose some interesting ideas. Right now this is the sort of thing I have: http://nitroy.com/cole/Files/Temp/SubViewsAreHard.png. An inspector panel basically, and a preference for the defaults. If I could get rid of the inspector styled panel I would but so far I could not figure out how to customize each view specifically.


Each view needs to be able to have different types, (i.e. is it a Top down or Perspective view) and other display preferences, like the rendering mode (wireframe, solid, textured) and lighting preferences. At first I had a dropdown list and buttons next to in someway to each view, but that was very cluttered, so I moved to a inspector style panel (displayed in the screenshot above), where the currently focused view preferences can be changed, as well as the windows global view preferences.

---
Coleman Nitroy
email@hidden
nitroy.com/cole

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Transparent NSMutableAttributedString
  • Next by Date: RE: Scrolling a text cell in an NSTableView subclass...
  • Previous by thread: Re: Creating NSViews with code.
  • Next by thread: Re: Creating NSViews with code.
  • Index(es):
    • Date
    • Thread