• 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: Custom NSArrayController - Dynamic Class?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom NSArrayController - Dynamic Class?


  • Subject: Re: Custom NSArrayController - Dynamic Class?
  • From: Quincey Morris <email@hidden>
  • Date: Sat, 18 Jul 2009 09:45:44 -0700

On Jul 18, 2009, at 09:01, Brad Gibbs wrote:

This means that I need a custom NSArrayController for each entity. Is there a way to make the entity name dynamic? In other words, can I ask the array controller for the name of the entity it's managing, so I only need one custom NSArrayController subclass to manage this for several different entity types? I guess I'm looking for a way to replace the argument (Floor *) from the example above with something like:

[[[self arrangedObjects] objectAtIndex:0] class]

Perhaps NSSClassFromString ([[self entityName] managedObjectClassName])?


_______________________________________________

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


References: 
 >Custom NSArrayController - Dynamic Class? (From: Brad Gibbs <email@hidden>)

  • Prev by Date: Custom NSArrayController - Dynamic Class?
  • Next by Date: Re: Finding an available port for chat
  • Previous by thread: Custom NSArrayController - Dynamic Class?
  • Next by thread: Re: Custom NSArrayController - Dynamic Class?
  • Index(es):
    • Date
    • Thread