Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6071213
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:01:18+00:00 2026-05-23T10:01:18+00:00

First of all; I’m currently employed as webdeveloper, so there are a few things

  • 0

First of all; I’m currently employed as webdeveloper, so there are a few things that are burned in my mind, one of them: Don’t use tables for layouts, just don’t!

I’m also learning Objective-C and working with the Cocoa framework, using a book. Here’s a quote from it:
“You can use these two methods in combination to turn a table into an arbitrary data list view. Each row can now be any size and drawn using any cell. This lets you draw completely unrelated things in a table view and just use it as a layout container.”

It feels just SO wrong to do that… But, is this common in OSX-developing with Cocoa, or should I avoid this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T10:01:19+00:00Added an answer on May 23, 2026 at 10:01 am

    The motivation behind “don’t use tables for layout” is to enforce the separation of presentation (CSS) and content (HTML). That’s a markup language thing.

    In Cocoa, the paradigm is model-view-controller. You want to keep your model (content) independent of your views (presentation… sorta), but it’s not really the same.

    If you are talking about iOS, using a UITableView in this way is perfectly kosher. That’s because it’s job is to manage a table of “cells” which could be made of anything. There is no pretense that it is for a table of information like you might find in a book. The “table” in a UITableView isn’t really the same concept as a “table” in HTML; for example, the UITableView can’t even support columns in the way a HTML table does.

    If you are talking about Mac OS X, the NSTableView is conceptually closer to the HTML table. Most of the time it is used for data, though it could be used to make a grid of checkboxes, for example. (But if that’s what you’re trying to do, NSMatrix is probably a better fit.)

    Note that the worst offenses of using HTML tables for layout involve lots of cells that span multiple columns and rows and/or embedding tables-within-tables, techniques that don’t even have analogues in NSTableView or UITableView. You couldn’t use an NSTableView to achieve these kinds of layouts.

    So:

    • DO NOT obsess about a thing with the word “table” in the name being used for layout. It’s not a bad thing, Cocoa is actually very well designed, you just have to get used to the territory.

    • DO stay true to the spirit of keeping content/model separate from presentation/view. It’s harder to see at first, since everything is in Objective-C (instead of two separate languages like HTML & CSS).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First of all I have seen that there are many questions about unrecognized selector
First of all, I'm uploading multiple images that goes through a for loop by
first of all, I'm not good with jQuery and coding. I'm trying to achieve
All what Hibernate reverse engineering generates is something like this @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name
I have an application I am developing that uses both jar libraries and native
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I am trying to understand how to use SyndicationItem to display feed which is
I have a Multidimensional array in Python. How do I go about sorting the
I've reached the end of my Linq rope. Need your help! Heres my table
The newspaper for the Computer Science-line at my school (called readme , it's norwegian,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.