Re: Custom NSArrayController - Dynamic Class?
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