[MacRuby-devel] BridgeSupport Question
lsansonetti at apple.com
Tue Oct 6 14:05:07 PDT 2009
I don't know for 1), but you should probably pass -c "-framework Cocoa".
For 2) it's totally expected, the file only contains non-
introspectable APIs. It lists -jbb_isEmpty because the method returns
BOOL which needs to be annotated because it shares the same runtime
encoding as unsigned char. The other methods can be handled at runtime.
Read the BridgeSupport(5) man page for more information.
On Oct 6, 2009, at 1:54 PM, Jordan Breeding wrote:
> So does it sound like a legitimate problem?
> I just didn't want to take up my time and developer time at Apple if
> I was just doing something stupid.
> I ran it like this: "gen_bridge_metadata -f ./JBBAdditions.framework
> -F final --64-bit -o ./JBBAdditions.framework/Resources/
> As long as you don't see any reason that shouldn't have worked I
> will file a bug.
> On Oct 06, 2009, at 15:50, Laurent Sansonetti wrote:
>> Hi Jordan,
>> You should submit BridgeSupport problems to:
>> The developer will deal with them there.
>> On Oct 6, 2009, at 1:43 PM, Jordan Breeding wrote:
>>> I have a question about whether I am seeing a bug in BridgeSupport
>>> or not.
>>> I am running Mac OS X 10.6.1 and have a custom framework that has
>>> some categories for Foundation/Cocoa classes.
>>> The following are the problem I noticed when using
>>> 1) I have to include Cocoa/Cocoa.h in the files, Foundation/
>>> Foundation.h doesn't seem to work even though those are really the
>>> only classes I am dealing with.
>>> 2) This is the bigger one, gen_bridge_metadata isn't picking up
>>> all of the methods/messages from my header, here is one of the
>>> #import <Cocoa/Cocoa.h>
>>> @interface NSArray (JBBAdditions)
>>> #pragma mark Instance Methods
>>> - (NSArray *)jbb_dictionariesWithKey:(NSString *)keyName;
>>> - (id)jbb_firstObject;
>>> - (BOOL)jbb_isEmpty;
>>> but here is the relevant section of the .bridgesupport file:
>>> <class name='NSArray'>
>>> <method selector='jbb_isEmpty'>
>>> <retval type='B'/>
>>> Any ideas as to why it is behaving this way? It is doing this for
>>> all of the classes I have defined categories on (only defining one
>>> Thanks for any input,
>>> MacRuby-devel mailing list
>>> MacRuby-devel at lists.macosforge.org
>> MacRuby-devel mailing list
>> MacRuby-devel at lists.macosforge.org
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
More information about the MacRuby-devel