Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 12-16-2008, 08:27 AM   #1 (permalink)
Registered Member
 
Join Date: Nov 2008
Posts: 27
Default Tutorial: AS3 tot Cocoa Touch: Array's

So for this topic I will discuss Array’s. So defined by wikipedia

“In computer science an array is a data structure consisting of a group of elements that are accessed by indexing. In most programming languages each element has the same data type and the array occupies a contiguous area of storage.”

So we all know that when we have an array in Actionscript we don’t have to fill it up with objects of the same data type’s, we can use any data type. We’re not restricted. That’s the same in Objective-C. Except 1 little thing. In objective-C if we want to fill up an array it can only be with Objects, not primitives (like int or float, ..). So what we will do is take a couple of examples using an Array in actionscript and converting it to Objective-c. Along the way we will se what is possible and what is not, or what will be different.

more to read here Andy Jacobs » AS3 to Cocoa Touch: Array’s
avalanched is offline   Reply With Quote
Old 12-16-2008, 08:41 AM   #2 (permalink)
Registered Member
 
Join Date: Aug 2008
Posts: 135
Default

Awesome thanks.
I am coming from Action Script background into objective-c so its nice to see these types of tutorials.
__________________
--- sup
mediashock is offline   Reply With Quote
Old 12-16-2008, 09:06 AM   #3 (permalink)
Registered Member
 
Join Date: Nov 2008
Posts: 27
Default

great to see people pick like my posts. if you have specific topics you would like to see covered please let me know and maybe I can make a post about that
avalanched is offline   Reply With Quote
Old 12-19-2008, 09:50 AM   #4 (permalink)
Registered Member
 
Join Date: Aug 2008
Posts: 135
Default

I would love to see a tutorial and comparison on using Views compares to movieclips. For example creating an application that has 3 views vs 3 movieclips that are in the library and how to bring them in (creating instance and using addChild) and (removeChild) type of idea.

But also how would you manage sharing information across the views, for example setting a label value of view1 with a button click thats inside view2.

maybe even eventlisteners vs cocoa..

thanks again
__________________
--- sup
mediashock is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 977
22 members and 955 guests
ADY, biskwit, fanarin, frank_huang, hearther, joom888, M@realobjects, MarkC, markn, mattjgalloway, mavericki, Meoz, morgen, OstinGames2011, Runassser, sebasx, sjr, stalkon, Stut72, Sunny46, tymex
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,491
Threads: 89,095
Posts: 380,135
Top Poster: BrianSlick (7,091)
Welcome to our newest member, Runassser
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 05:28 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0