• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Passing NSPrintOperation* to CPP Function
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Passing NSPrintOperation* to CPP Function


  • Subject: Passing NSPrintOperation* to CPP Function
  • From: koko <email@hidden>
  • Date: Wed, 21 Sep 2011 20:34:08 -0600

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@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Passing NSPrintOperation* to CPP Function
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Gestalt
  • Next by Date: Equivalent of UITextField's textField:shouldChangeCharactersInRange:replacementString for NSTextField
  • Previous by thread: NSToolbarItem target action and view
  • Next by thread: Re: Passing NSPrintOperation* to CPP Function
  • Index(es):
    • Date
    • Thread