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

View Single Post
Old 11-11-2008, 08:44 PM   #4 (permalink)
Pitfall
Registered Member
 
Join Date: Nov 2008
Posts: 7
Default Zeroing in on the difference...

Pitfall here again... Armed with the comment that it should work I made some progress. I was trying to init the constant array in the interface declaration where I establish my globals. It doesn't let me populate the array there.

On the other hand, the C syntax works perfectly inside the implementation declaration, when used locally within a method.

I could use NSArray, but it seemed overkill to alloc a memory region, initWithObjects, and then have to purge - all to make a 10 byte table.

I guess it makes sense that Objective C won't let me embed a code-like construct in the declaration area. But being new to the language that didn't jump out at me.

Thanks for the replies.
Pitfall is offline   Reply With Quote
 

» Advertisements
» Online Users: 607
20 members and 587 guests
3DTOPO, appezzy, chemistry, Dani77, devangvyas, Domele, Gambit, Gurpartap Singh, hiddendemo, ilmman, linkmx, mohe01pro, Objective Zero, oceanlablight, PetarPM, Prolocksmith12, savvycom, Speed, StormFactory, sudama
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,780
Threads: 89,204
Posts: 380,599
Top Poster: BrianSlick (7,129)
Welcome to our newest member, Prolocksmith12
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 11:35 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.