Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ObjC Method naming



On Monday, May 28, 2001, at 10:12 pm, Scott wrote:

Also, what does the minus sign ("-") mean in the declaration? I've seen the
plus sign used also. What's the difference? All it says in the docs is
"you could also use the plus sign..." but doesn't follow up with any meaning
behind it. And when I declare a method, do I HAVE to declare it with
parameter names or can I leave them out?

+ is for class methods
- is for instance methods

-- Finlay


References: 
 >Re: ObjC Method naming (From: Scott <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.