Namaste! Thank you for the replies.
I originally attempted to get this going through an array controller but failed, so I figured it couldn't be done that way and went to a routine to do it. However, your previous reply sparked something and I got the array controller partially working. It now returns the list, albeit unordered. The contentArray (can't use contentSet in this case) is bound to the "master" array controller's arrangedobjec...@distinctunionofobjects.stringattribute. This gets me the aggregated list of stringAttributes (or so I think anyway). Now, when I attempt to set the sort descriptor in the array controller, I get a not key-value coding compliant error. This is because there is only one attribute being returned and it apparently doesn't have a key that I know (and yes, I checked to make sure I spelled my keyPath correctly). When binding the combo-box content/content values, I simply used arrangedObjects with no keypath and that seems to be correct as the list is loaded and displayed. However, for the sort descriptor, I know that isn't right. So, how does one refer to "the first column" of the array controller in this case via sort descriptor? Better question might be, what is the keyPath if it isn't the attribute name? Thanks! Peace, Love, and Light, /s/ Jon C. Munson II > -----Original Message----- > From: I. Savant [mailto:idiotsavant2...@gmail.com] > Sent: Wednesday, April 08, 2009 5:05 PM > To: jmun...@his.com > Cc: Cocoa Developers > Subject: Re: Creating an ordered list for combo-box content from a Core > Data entity attribute > > >> So, I've created a relevant method to fetch & load an ordered list. > .... > > What kind of attribute is it? It should be as easy as setting the > > desired sort descriptors (see NSSortDescriptor and associated > > companion guide(s)) on the array controller that's providing your > > list. > > Sorry, I realize it sounds like you're doing this with a manual > fetch in code. In that case, you'll want to set the NSFetchRequests's > sort descriptors since an array controller is not doing the fetching. > > -- > I.S. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com