On Jul 21, 2010, at 12:14, Karl Moskowski wrote:

> 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,

That was it. Thanks a million!

-Laurent.
-- 
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin                                 
http://www.nemesys-soft.com/
Logiciels Nemesys Software                                      
laur...@nemesys-soft.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to