Re: Problem with category and obj-c++?
Re: Problem with category and obj-c++?
- Subject: Re: Problem with category and obj-c++?
- From: Karl Moskowski <email@hidden>
- Date: Wed, 21 Jul 2010 15:14:36 -0400
On 2010-07-21, at 1:26 PM, Laurent Daudelin wrote:
> Is there some limitation on how categories perform or can be used when invoked by an Objective-C++ class?
>
> I started using the zipkit with an Objective-C++ class in one of my command line tool project. When I got everything wired properly, I tried running the tool in debug mode. As soon as I call one of the class method in the framework, I quickly get an exception that an NSString was sent a message that it didn't recognize. I checked it out and it was easy to see that it was a category method on NSString that was called. Now, I'm puzzled as I've never seen this before. I have tried linking against the static library version of the zipkit. Everything compiles and links fine.
>
> Anybody has any idea?
>
> Thanks in advance!
Laurent,
In the Xcode project for your command line tool, did you add one or both of these to the Other Linker Flags of either the project or target?
-ObjC -all_load
See this for more info:
http://developer.apple.com/mac/library/qa/qa2006/qa1490.html
----
Karl Moskowski <email@hidden>
Voodoo Ergonomics Inc. <http://voodooergonomics.com/>
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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