Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Mac Programming / May 2005



Tip: Looking for answers? Try searching our database.

[Objective-C++] Friends, typedefs, and other stuff

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kelvSYC - 28 May 2005 06:27 GMT
Can a C++ member function declare an Objective-C selector as a friend
(and/or the other way around)?

Also, in Objective-C++, can you have a scoped typedef in an Objective-C
class (eg. NSArray::iterator)?

Is there a way to add a member operator function to an Objective-C
class?

Signature

I am only a mirage.

Michael Ash - 28 May 2005 09:06 GMT
> Can a C++ member function declare an Objective-C selector as a friend
> (and/or the other way around)?

No, because Objective-C has no concept of "friend" and so this would be
meaningless. Any piece of code can already send any Objective-C selector
to any object.

> Also, in Objective-C++, can you have a scoped typedef in an Objective-C
> class (eg. NSArray::iterator)?

No, because Objective-C classes are not namespaces the way C++ classes
are, even in ObjC++.

> Is there a way to add a member operator function to an Objective-C
> class?

No, because Objective-C classes do not have member functions, even in
ObjC++.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.