[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Q] How a method in a category added ?
From: |
S.J.Chun |
Subject: |
Re: [Q] How a method in a category added ? |
Date: |
Sun, 13 Jul 2003 23:08:53 +0900 (KST) |
If I included the category code with the same executable(like static link or
object file) it works, yes. But if
I make the category code as dll or framework and link with the executable, it
does not work. I'm using MinGW.
The framework itself does not work without patching.(Refer to one of my
previous mail, framework.mak) I will
try if it works if I load them dynamically with bundle.
----- Original Message -----
From: Pete French <pete@twisted.org.uk>
To: chunsj@embian.com,discuss-gnustep@gnu.org
Sent: Sun, 13 Jul 2003 14:10:23 +0100
Subject: Re: [Q] How a method in a category added ?
> Category system does not work on Windows, for example, in EDCommon, a new
method for NSString class is
That interesting - categories should be in gcc and nothing to do with
GNUstep. I wrote objective C under windows for many years (using cygwin)
and used category methods all the time - they seemed to work fine.
You have to make sure that the object file containing the method is linked
into the application somehow though. If its in a library then this doesnt
seem to happen automatically. I used to explicity put all my category
methods into separate .o's and link them explicity rather than trying to
get them out of a library.
-bat.