Hi @ all,
I have a problem in my class,
In my class.m, I declared some NNString variable, all in same way.
I "@"synthesized these, but someones thrown exceptions, others not.
this is the myclass header code
whereas the .m code is
for example, if I set the variable "birth" p.birth=@"", it works; otherwise if I set the variable p.mTeM it doesn't work, I tried to use the method [p setMTeM
""], but it is the same. This is the generated error.
can someone can help me
?
I have a problem in my class,
In my class.m, I declared some NNString variable, all in same way.
I "@"synthesized these, but someones thrown exceptions, others not.
this is the myclass header code
Code:
@interface Paziente : NSObject
{
NSString * name;
NSString * birth;
NSString * ID;
NSString * sex;
NSString * mTeGr;
NSString * vTeGr;
NSString * mCrGr;
NSString * vCrGr;
NSString * mCdGr;
NSString * vCdGr;
NSString * mTeM;
NSString * vTeM;
NSString * mCrM;
NSString * vCrM;
NSString * mCdM;
NSString * vCdM;
}
@property (nonatomic,retain)NSString * name;
@property (nonatomic,retain)NSString * birth;
@property (nonatomic,retain)NSString * ID;
@property (nonatomic,retain)NSString * sex;
@property (nonatomic,retain)NSString * mTeGr;
@property (nonatomic,retain)NSString * vTeGr;
@property (nonatomic,retain)NSString * mCrGr;
@property (nonatomic,retain)NSString * vCrGr;
@property (nonatomic,retain)NSString * mCdGr;
@property (nonatomic,retain)NSString * vCdGr;
@property (nonatomic,retain)NSString * mTeM;
@property (nonatomic,retain)NSString * vTeM;
@property (nonatomic,retain)NSString * mCrM;
@property (nonatomic,retain)NSString * vCrM;
@property (nonatomic,retain)NSString * mCdM;
@property (nonatomic,retain)NSString * vCdM;
@end
whereas the .m code is
Code:
#import "Paziente.h"
@implementation Paziente
@synthesize mCdGr;
@synthesize vCdGr;
@synthesize mTeM;
@synthesize vTeM;
@synthesize mCrM;
@synthesize vCrM;
@synthesize mCdM;
@synthesize vCdM;
@synthesize name;
@synthesize birth;
@synthesize ID;
@synthesize sex;
@synthesize mTeGr;
@synthesize vTeGr;
@synthesize mCrGr;
@synthesize vCrGr;
@end
for example, if I set the variable "birth" p.birth=@"", it works; otherwise if I set the variable p.mTeM it doesn't work, I tried to use the method [p setMTeM
-[Paziente setMTeM:]: unrecognized selector sent to instance 0x2e4bff0
2012-10-31 15:48:24.089 OsiriX[9976:1903] -[Paziente setMTeM:]: unrecognized selector sent to instance 0x2e4bff0
2012-10-31 15:48:24.091 OsiriX[9976:1903] (
0 CoreFoundation 0x90f14a67 __raiseError + 231
1 libobjc.A.dylib 0x9240c149 objc_exception_throw + 155
2 CoreFoundation 0x90f18070 -[NSObject doesNotRecognizeSelector:] + 256
3 CoreFoundation 0x90e66cd9 ___forwarding___ + 457
4 CoreFoundation 0x90e66aa2 _CF_forwarding_prep_0 + 50
5 Piomot_Plugin-pancreas 0x0c8053ad -[pancreas_PluginFilter rmt2x:] + 5645
6 CoreFoundation 0x90e69d11 -[NSObject performSelector:withObject:] + 65
7 AppKit 0x918ee663 -[NSApplication sendAction:to:from:] + 232
8 AppKit 0x918ee540 -[NSControl sendAction:to:] + 102
9 AppKit 0x918ee443 -[NSCell _sendActionFrom:] + 160
10 AppKit 0x918ed800 -[NSCell trackMouse:inRectfView:untilMouseUp:] + 2295
11 AppKit 0x91970a95 -[NSButtonCell trackMouse:inRectfView:untilMouseUp:] + 501
12 AppKit 0x918ec243 -[NSControl mouseDown:] + 943
13 AppKit 0x918b5dcd -[NSWindow sendEvent:] + 7533
14 AppKit 0x9184ef77 -[NSApplication sendEvent:] + 4788
15 AppKit 0x917e0b21 -[NSApplication run] + 1007
16 AppKit 0x91a71ac5 NSApplicationMain + 1054
)
can someone can help me