[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Properties and objc1
From: |
Bertrand Dekoninck |
Subject: |
Properties and objc1 |
Date: |
Fri, 17 Aug 2018 12:06:37 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
Hi everyone on the list.
I'm enjoying my summertime to do some gnustep stuff. I want to convert
the rik.theme to objc1 because I can't have libobjc2 running on my ppc
computers.
For now, I'm dealing with properties.
I've managed to convert this one :
@property (retain) NSButtonCell * defaultbuttoncell;
into :
- (NSButtonCell *) defautbuttoncell {
return defaultbuttoncell;
}
- (void) setdefaultbuttoncell: (NSButtonCell *) defaultbuttoncell_ {
[defaultbuttoncell_ retain];
[defaultbuttoncell release];
defaultbuttoncell = defaultbuttoncell_;
}
And I want to be sure for this one because of the non atomic and assign
attributes :
@property (nonatomic, assign) BOOL reverse;
is replaced by :
- (BOOL) reverse {
return reverse;
}
- (void) setReverse: (Bool) reverse_ {
reverse = reverse_;
}
Thanks,
Bertrand
Is this correct ?
- Properties and objc1,
Bertrand Dekoninck <=