Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ArtOfWarfare

macrumors G3
Original poster
Nov 26, 2007
9,706
6,289
Okay, so I'd like to add a new feature to emoji typing app... the ability to search for characters.

I'd like to make a list of keywords the app associates with each character, and if the user is typing a keyword, then it shows the emoji.

The only issue is... I have no idea how to do this. I've been looking all weekend but haven't found much. I suspect Core Data might be what I'm looking for, but I haven't found any examples that seem to really do what I'm looking for...

any pointers?

Do NSPredicates have anything do with what I want?
 
NSPredicate -> Core Data. If you have an array of Emoji characters, you can easily do it, with a Scanner of Characters in your words inside your array.
If you don't have Core Data within your app, you will need to convert to that, or not. Depends on what you have atm, since I see in your footer that you already have an Emojji app, you just want to edit it right?
 
If you don't have Core Data within your app, you will need to convert to that, or not. Depends on what you have atm, since I see in your footer that you already have an Emojji app, you just want to edit it right?

Right now I have text files and NSArrays, but I'm trying to figure out Core Data as I'll be needing it for my next app. I figure changing my emoji app over to Core Data will help teach me more about how Core Data works.

I'm reading up on NSPredicates right now... but I feel like some kind of tutorial that actually demonstrates using both Core Data and NSPredicates together would be most helpful...
 
Last edited:
Art, have u considered the Stanford University C193P version of the Core Data tutorial? :) That might help you out a bit.

I did look at it over a year ago... I didn't pay much attention as I didn't need it at the time... Did they demonstrate using it to search? If they did, I completely forgot about it. I'll check it out this evening when I have a free hour to myself.
 
I did look at it over a year ago... I didn't pay much attention as I didn't need it at the time... Did they demonstrate using it to search? If they did, I completely forgot about it. I'll check it out this evening when I have a free hour to myself.

You could use nspredicate to filter the array and populate a searchcontroller.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.