• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Feh. Obj-C syntax question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Feh. Obj-C syntax question


  • Subject: Re: Feh. Obj-C syntax question
  • From: Antonio Nunes <email@hidden>
  • Date: Thu, 8 Nov 2007 00:10:02 +0000

On 7 Nov 2007, at 23:42, Rick Mann wrote:

---
#import <Cocoa/Cocoa.h>


@interface Converter : NSObject { @property(readwrite) float mSourceCurrencyAmount; @property(readwrite) float mRate; }

- (float)		convertCurrency;

@end

---

Change that to:

---
#import <Cocoa/Cocoa.h>


@interface Converter : NSObject { float mSourceCurrencyAmount; float mRate; }

- (float)		convertCurrency;

@property(readwrite) float mSourceCurrencyAmount;
@property(readwrite) float mRate;

@end

---

And have another look at the Obj-C 2.0 documentation on how to declare properties.

-António


----------------------------------------------------------- Some things have to be believed to be seen.

--Ralph Hodgson
-----------------------------------------------------------



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Feh. Obj-C syntax question
      • From: Rick Mann <email@hidden>
References: 
 >Feh. Obj-C syntax question (From: Rick Mann <email@hidden>)
 >Re: Feh. Obj-C syntax question (From: Thomas Davie <email@hidden>)
 >Re: Feh. Obj-C syntax question (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: Debugger refuses to switch threads
  • Next by Date: Re: Feh. Obj-C syntax question
  • Previous by thread: Re: Feh. Obj-C syntax question
  • Next by thread: Re: Feh. Obj-C syntax question
  • Index(es):
    • Date
    • Thread