Be a Supporter!
egg82
egg82
  • Member since: Jun. 24, 2006
  • Offline.
Forum Stats
Member
Level 05
Game Developer
objective-c questions Jan. 28th, 2013 @ 01:34 PM Reply

so i'm developing a simple objective-c name generator. I decided to overcomplicate it because I can learn a bunch more that way, and of course wound up stuck.

so, a few questions to help solve some things before I actually form an opinion on the language and set it in stone (my opinion so far is that it claims to be an OOP language, but lacks the basics that every OOP language needs to have)

first:

+ (float) generateFast:(uint) seed;

what does the + symbol mean, and what's the use of the - symbol?

second: Why does it seem like every + method ever is static?
third: Why can I not access @properties with methods with a + symbol?
fourth: Why can I not access - methods with + methods?
fifth: Why can I not access - methods by accessing the class?
sixth: what's the difference between a + or - method and specifically calling it a function?
finally: Is a property a variable, or what?

the main problem in my current application is that I can't access properties without a - method, and I can't access a - method with either a + method or by calling it directly. Basically, I can't seem to access a property at all. Really doesn't help.


Programming stuffs (tutorials and extras)
PM me (instead of MintPaw) if you're confuzzled.
thank Skaren for the sig :P

BBS Signature
kiwi-kiwi
kiwi-kiwi
  • Member since: Mar. 6, 2009
  • Online!
Forum Stats
Member
Level 09
Programmer
Response to objective-c questions Jan. 28th, 2013 @ 04:03 PM Reply

when it comes to class members, + means static, - means it's an actual member of an object

egg82
egg82
  • Member since: Jun. 24, 2006
  • Offline.
Forum Stats
Member
Level 05
Game Developer
Response to objective-c questions Jan. 28th, 2013 @ 04:32 PM Reply

At 1/28/13 04:03 PM, kiwi-kiwi wrote: when it comes to class members, + means static, - means it's an actual member of an object

Thanks, mate. That answers every question except 5 and 6.


Programming stuffs (tutorials and extras)
PM me (instead of MintPaw) if you're confuzzled.
thank Skaren for the sig :P

BBS Signature