This worked in Panther...
This worked in Panther...
- Subject: This worked in Panther...
- From: Jerry LeVan <email@hidden>
- Date: Mon, 20 Jun 2005 11:14:16 -0400
Hi,
I stepped away from programming about eight months ago...I am trying to
get motivated to starting up again...
I recently received a complaint that one of my projects would not
compile
under "Tiger".
I did a clean and rebuild and sure enough I get a number of errors
typically
like the following:
current = [ [theController rotation] floatValue]; <--- error on this
warning: invalid receiver type 'float'
error: cannot convert to a pointer type
where the above occurs in a subclassed image view.
The intent is to obtain the value of a slider object that controls the
amount of rotation to apply to the image.
"theController" is a pointer to the "main" class in the application.
Inside the main class I have an outlet to the slider with name
"rotation"
and I also have a "getter" in the main class called "rotation" which
simply
returns the pointer to the slider object.
In the KeyImageView.h file I have:
@interface KeyImageView : NSImageView
{
IBOutlet id theController; // provides access to main controller
object
}
In my main controller.h class I have:
IBOutlet id rotation; // pointer to the rotation slider
and
- (NSSlider*)rotation; // returns pointer to
rotation slider
the implementation of the rotation function is:
-(NSSlider*)rotation
{
return rotation;
}
IB shows that "theController" is set to point to the instance of the
controller.
My initial guess is that I will need to change the "getter" method so
that the
name does not conflict with the outlet variable of the same name.
Is gcc 4.xx being overly picky? Everything compiled fine back in
Panther.
Jerry
_______________________________________________
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