Suppose I have an forum powered by Discuz. I want to write an iPhone
application which is like a portal can
access that forum, any forum operation like browsing, reply, change profile,
make it favourite post etc can
be done in that iPhone application as well.
I just wonder how to approach that, say what documents I should read first,
what knowledge or technology
I should master to do it?
My idea is to start with reading CFNetwork programming guide and stream
programming guide for cocoa.
Any advice is appreciated!
--
==========================
Life isn't about finding yourself.
Life is about creating yourself.
_______________________________________________
Cocoa-dev mailing list (Coco...@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/cocoa-dev-garchive-98506%40googlegroups.com
This email sent to cocoa-dev-ga...@googlegroups.com
________________________________
From: ico <jch...@gmail.com>
Date: Sun, 28 Nov 2010 22:01:09 -0500
To: <coco...@lists.apple.com>
Subject: Re: How to approach to write such an app?
Cocoa-dev mailing list (Coco...@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/chris%40clwill.com
This email sent to ch...@clwill.com
URLs also pass data back and forth.
You should review basics of HTPP and web app development and then look at the cocoa and cocoa touch classes related to URL handling, cookies, etc...
You can make an app much like the facebook app and only store the user login data and then you have a custom local UI with buttons that interact with the site, then a view that renders content returned from the site.
Not hard, just a bit of reading.
Learn the basics first.
Cocoa is rich, and big, and most of what you need is already there. However, you cannot start Cocoa without first learning from the ground up.
Just hacking junk together will result in a crappy app.
> http://lists.apple.com/mailman/options/cocoa-dev/jjoyce%40apple.com
>
> This email sent to jjo...@apple.com
I am not going to store threads and messages into the iPhone. The app merely
get data from the forum(web server). And store
the data into the forum(web server) as well. I know it uses MySQL database.
So if the user post a new thread to the forum through
my App, I should store those data into the web server as well just like you
do through a browser on PC. The only data I plan to
store in the iPhone is the user login data. So that they don't need to login
every time when launching the app. Of course I would
provide an option to them for not storing login data at all for privacy
reason.
btw, how can I encrypt those login data such as login name and password in
the iPhone?
On Mon, Nov 29, 2010 at 11:44 AM, Jeff Kelley <slaun...@gmail.com> wrote:
> The data format isn’t really the big deal here. Instead, you should think
> about the internal structure of your app; how are you going to store users,
> threads, individual messages, different forums, etc.? Core Data is an
> option, which gets you persistence for free.
>
> Once you get that figured out, getting the information from the server to
> the application is a matter of getting the data from one format to another.
>
> -Jeff
>
> On Nov 28, 2010, at 10:33 PM, ico wrote:
>
> Thanks for your reply. I actually just found out that Discuz is like a
> brand. I thought it was
> commonly used world wide.
> Actually Discuz is just a forum written in PHP. Sure I should communicate
> with that team
> to see what they can provide.(data format, functions etc).
> Anyway, what if this forum is simply like many PHP forum out there, what is
> the best
> approach to communicate with this forum through my iPhone app?
> Is JSON the best way to do suppose it supports JSON and XML formated pages.
> Or it only supports to provide HTML stuff, should I work on the server side
> to make
> it supports providing JSON or XML formated pages?
> All in one is that I want to know the best way to approach that no matter
> what data
> format it can provide. Assume that I am able to make it to support that
> data format
> even though it originally does not.
>
> On Mon, Nov 29, 2010 at 11:09 AM, Jeff Kelley <slaun...@gmail.com>wrote:
>
>> Hello,
>>
>> You may have not gotten a response yet because this list focuses on
>> Cocoa development, but your question is really more of a Discuz
>> question. How you approach writing an application will depend on what
>> kinds of data you can get from the Discuz installation, whether it
>> gives you JSON- or XML-formatted pages, or if you’ll have to scrape
>> the HTML to get it to work. I’d recommend reading the Discuz
>> documentation or asking on its discussion forum, if it has one.
>>
>> Jeffrey R. Kelley
>> Slaun...@gmail.com
On 2010-11-28, at 8:14 PM, ico wrote:
> btw, how can I encrypt those login data such as login name and password in
> the iPhone?
_______________________________________________