Suggested topic for mars meeting.

2 views
Skip to first unread message

Fredrik Olsson

unread,
Feb 17, 2010, 8:00:34 AM2/17/10
to CocoaHeads Øresund
Hi all.

I would like to suggest the topic of storing user state for the next
meeting. The lack of multitasking makes it a must for developers to
properly store and restore user state when an app is terminated and
started anew.

This is a daunting task for developers, and Apple do not provide any
real tools for helping us, the developers.

So I would suggest that we discuss this topic. Each of us presenting
how we have solved it, what are the pros and cons, etc.

So if you have a war story that you would like to share, then contact
me and I put you up on the schedule.


// Fredrik

Felix Holmgren

unread,
Feb 17, 2010, 11:27:44 AM2/17/10
to cocoahead...@googlegroups.com
Hej!

Ganska intressant ämne. Jag har hittills använt mig av det enklast
möjliga: NSDefaults. Snabbt, ostrukturerat, slappt. Det finns säkert
andra som kan prata bra om sqlite. Finns ju en obj-c-wrapper också,
open source. Kommer inte ihåg vad den heter. De närmaste veckorna ska
jag bygga ett system som synkar använderkonton mot en server, så att
info ska kunna följa med mellan olika plattformar och webbapps. Skulle
kunna prata lite om det.

Ha det bra!
/Felix

2010/2/17 Fredrik Olsson <pey...@gmail.com>:

> --
> You received this message because you are subscribed to the Google Groups "CocoaHeads Øresund" group.
> To post to this group, send email to cocoahead...@googlegroups.com.
> To unsubscribe from this group, send email to cocoaheads-ores...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/cocoaheads-oresund?hl=en.
>
>

--
Holmgren Interstellar
S:t Gertrudsgatan 4C
S-211 25 Malmö
Sweden
tel: +46 704 452 469

Joachim Bondo

unread,
Feb 22, 2010, 6:33:59 AM2/22/10
to CocoaHeads Øresund
If we're talking user preferences and settings, NSUserDefaults is
definitely the way to go. For user *data*, in the lighter end, I make
my classes serializable by letting them conform to the NSCoding
protocol. That makes it extremely simple to archive and de-archive the
objects at runtime. For heavier data, Core Data is a nice option. And
now that iPhone OS 3.0 is not so new anymore, most users - who
download apps anyway - must have upgraded.

XML and JSON are also good alternatives with a few Open Source
libraries available.

Looking forward to attending more of the events this year.

Joachim

> > For more options, visit this group athttp://groups.google.com/group/cocoaheads-oresund?hl=en.

Reply all
Reply to author
Forward
0 new messages