gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Project-Center 0.6.2


From: David Chisnall
Subject: Re: Project-Center 0.6.2
Date: Thu, 30 Sep 2021 17:56:51 +0100

Hi,

This code looks correct.  It’s entirely possible that this is a bug in the 
runtime.  Which runtime / ABI are you using?

David

> On 30 Sep 2021, at 17:50, Daniel Santos <daniel.dlds@gmail.com> wrote:
> 
> Hi,
> 
> I am adding some changes to this, and have a question : 
> I am trying to add a method to PCProjectManager.h and .m.
> The code compiles because I can see some warnings go by in the make phase.
> But at runtime that selector (named : -(void)newProjectFromSources: 
> (id)sender; )
> is not on the selector list that I am obtaining with :
> 
>  NSLog([NSString stringWithCString: class_getName([projectManager class])]);
> 
>  unsigned int amountMethod = 0;
>  Method *methods = class_copyMethodList([projectManager class], 
> &amountMethod);
>  unsigned int i;
>  for (i = 0; i < amountMethod; i++) {
>    Method method = methods[i];
> 
>    printf("\t method named:'%s' \n", sel_getName(method_getName(method)));
>  }
> 
> What am I doing wrong ? or not doing ? I made a ‘make clean’ and even deleted 
> the ProjectCenter.app directory.
> Another method I added to the class PCMenuController that is called by a menu 
> item works and calls the above code.
> 
> Thanks
> Regards
> Daniel Santos
> 
> 
> 
> 
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]