• 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: associating a custom view for each object in a core data entity
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: associating a custom view for each object in a core data entity


  • Subject: Re: associating a custom view for each object in a core data entity
  • From: Graham Cox <email@hidden>
  • Date: Wed, 12 Sep 2012 09:36:03 +1000

On 12/09/2012, at 8:54 AM, Chuck Soper <email@hidden> wrote:

> I think I could use a view based table
> with one row with the number of columns equal to the number of colors.
> Does this sound like a reasonable approach?


It sounds like it should be straightforward enough, except for the table view part. It doesn't seem to be to be a close enough fit to your requirements that it would be worth bothering trying to make it work that way. Instead, just create a custom view/controller that implements this display and have methods for adding, removing and reordering colours in that view.

A "one row table" is almost a contradiction in terms - if it has only one row, it's not a table. I see nothing in NSTableView that would bring anything to this that you couldn't do in a simpler and more direct way by just writing your own view subclass and a controller for it. It may sound like more work, but in fact it's sure to be less.

--Graham


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: associating a custom view for each object in a core data entity
      • From: Chuck Soper <email@hidden>
References: 
 >associating a custom view for each object in a core data entity (From: Chuck Soper <email@hidden>)

  • Prev by Date: Re: associating a custom view for each object in a core data entity
  • Next by Date: Re: associating a custom view for each object in a core data entity
  • Previous by thread: Re: associating a custom view for each object in a core data entity
  • Next by thread: Re: associating a custom view for each object in a core data entity
  • Index(es):
    • Date
    • Thread