I am trying to write a CPP function that takes an NSOperation* as a parameter
but am going around in circles.
Specifically:
In my cpp .h file
class BPrinter
{
void Setup(NSPrintOperation* pOperation);
};
in my .cpp file (compiled as cpp.objcpp)
void BPrinter::Setup(NSPrintOperation pOperation)
Now in my Cocoa view .m
NSPrintOperation *po = [NSPrintOperation printOperationWithView:self];
m_bprinter->Setup(po);
and I get the error:
no matching function for call to 'BPrinter::Setup(NSPrintOperation*&)
I am confused by this ... why does the compiler think the signature is
(NSPrintOperation*&) when clearly it is (NSPrintOperation*)
-koko
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]