HomeStoreForumsWikiiPhone Native AppsiPhone AppsiPhone Apps modmyifone Downloadsmodmyifone Links






Go Back   ModMyiFone.com - iPhone | iPod Touch forums, news, apps, themes. > 3rd Party Apps For iPhone | iPod Touch > iPhone / iPod Touch SDK | Development Discussion
Register FAQ Members List READ THIS Today's Posts Mark Forums Read

iPhone / iPod Touch SDK | Development Discussion SDK questions. A place for iPhone developers to post code snippets, discuss creating iPhone apps, and any other iPhone developing.


iPhone Optimized MMi | Browser Optimized MMi

Get more out of ModMyiFone by joining our free community. By registering you get privileges to download files from our downloads section and you may also post your questions in our forums! It's fast, free, and easy!

Opportunities at MMi | 1.1.4 Unlock|Jailbreak OS X / Win
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-08-2008, 09:24 PM
JLA JLA is offline
Developer
 
Join Date: Oct 2007
Posts: 198
Thanks: 1
Thanked 20 Times in 19 Posts
ObjectiveC 2.0 support - toolchain?

Does the toolchain GCC (specifically one compiled last November) support ObjectiveC 2.0 (e.g. the @property tag)?
When compiling, I get a "Leopard only" warning...
JLA
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #2 (permalink)  
Old 04-09-2008, 10:53 AM
Green Apple
 
Join Date: Sep 2007
Posts: 40
Thanks: 0
Thanked 9 Times in 5 Posts

No. Rather the iphone OS released so far does not support ObjC 2.0 (it's a half way point between Tiger and Leopard.) It sounds like the SDK beta 2.0 is ObjC 2.0 without garbage collection.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #3 (permalink)  
Old 04-09-2008, 10:15 PM
JLA JLA is offline
Developer
 
Join Date: Oct 2007
Posts: 198
Thanks: 1
Thanked 20 Times in 19 Posts

Thanks...but deg gommit...
It seems that without garbage collection, ObjC2.0 is a glorified set of macros...
I wish there were some way that properties could be parsed by a compiler and converted into the traditional ObjC1.0 methods behind the scenes.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #4 (permalink)  
Old 04-11-2008, 03:43 PM
Green Apple
 
Join Date: Sep 2007
Posts: 40
Thanks: 0
Thanked 9 Times in 5 Posts

Huh, not sure what you mean. Preference/plist files can be loaded direct to dictionaries. I'm confused by your properties / ObjC comments.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #5 (permalink)  
Old 04-11-2008, 07:25 PM
JLA JLA is offline
Developer
 
Join Date: Oct 2007
Posts: 198
Thanks: 1
Thanked 20 Times in 19 Posts

I mean as far as I see it, the parts of ObjC that are new to 2.0 that I use are similar to macro...they don't offer much new functionality, but rather save time.

Code:
@property(retain, readwrite) NSObject* exampleProperty;
----
@synthesize exampleProperty=myVariable;
is (I assume) just like plugging in the code:
Code:
- (void) setExampleProperty: (NSObject*) aValue
{
[aValue retain];
[myVariable release];
myVariable=aValue;
}
-(NSObject*) exampleProperty
{
return myVariable;
}
Now I'm sure they do more stuff behind the scenes (serialization perhaps?), but I just wish an entire different runtime wasn't required. Would it be possible to implement the objC_setProperty(...) [etc] method to enable this behavior?

Last edited by JLA : 04-11-2008 at 07:26 PM. Reason: grammar
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
Reply

  ModMyiFone.com - iPhone | iPod Touch forums, news, apps, themes. > 3rd Party Apps For iPhone | iPod Touch > iPhone / iPod Touch SDK | Development Discussion


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

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

ModMyMoto.com - ModMyGPhone.com - ModMyiFone.com - Managed Dedicated Servers by SingleHop - iPhone Wallpapers - Contact Us - Link to us - Archive - Privacy Statement - - Top
Copyright © 2007-08 by ModMy, LLC. All rights reserved. You may not copy anything on this site unless you link to the original.
All times are GMT -6. The time now is 10:07 PM. Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5
ModMyiFone.com is an independent publication and has not been authorized, sponsored, or otherwise approved by Apple, Inc or Cisco Systems, Inc. The information contained on this site is for educational purposes only.
Forum skin by poetic_folly