Is it possible to return a value from a picker that isn't what it has as it's label? I would like to return the primary key of the value listed in my picker. The values are loaded from sqlite.
Are you saying to just fake the primary key by using the row number and hope that it is the same as the actual primary key? What if the query is reordered, it won't line up at that point. Is there a way to get the primary key of the record without having to do a whole query to get that?
How did you get the data to begin with to populate the picker? I can't give too concrete of an answer because I don't know what you are doing. But in general I assume you are reading some data from a database to populate your pick view data model. Save enough info in that data model so that when a user picks a row from a component, you can grab enough data from the model to do whatever further query you need from the database.
I don't understand how I would go about adding another value to my array. I come from a web background and understand multidimensional arrays but I do not know the syntax to create one in Cocoa. That's why I asked if there was a way to setup the view picker like a select box on the web -- the label being different from the value.