Instance variable conundrum
Instance variable conundrum
- Subject: Instance variable conundrum
- From: "Brant Sears" <email@hidden>
- Date: Thu, 9 Feb 2006 15:14:45 -0500
- Thread-topic: Instance variable conundrum
I would like some assitance understanding a phenomenon that is happening in app for some reason.
I have a custom view derived from NSView. It has an instance variable called "fSuppressIcon" which is of type BOOL. I use this by assigning it to NO or YES and something using:
fSuppressIcon=!fSuppressIcon;
Then, in my draw method, I am checking to see if it is true in order to know whether to draw an iconic image onto the view. The purpose is that there should be a state in which it has no image, a state where it has an image, and a state where it uses an NSTimer to blink the image.
This was working fine until recently when it was noted that the view stops blinking and stops displaying an image altogether. I checked the debugger and the reason appears to be that there is a "File Static" variable that is somehow interfering with the check to see if this variable is YES or NO.
The file static variable is listed as "_OBJC_METH_VAR_NAME_4" and its value or whatever is "fSuppressIcon". I'm not sure, but does this perhaps this have to do with Key-Value for my class?
How can prevent this problem from occuring?
Also, I am not declaring a static file variable with this name anywhere in my project.
Thanks.
Brant Sears
<<winmail.dat>>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden