Re: [gnustep-gui] [NSMenuItem setKeyEquivalent:] nil value

2008-05-28 Thread Fred Kiefer

Done.

Blake Nicholson wrote:
I just wanted to bring something to the attention of any gnustep-gui 
folks out there.  On Mac OS X, nil should never be passed as a key 
equivalent.  To define no key equivalent, one should pass an empty 
string.  The code for [NSMenuItem setKeyEquivalent:] in gnustep-gui 
checks for (and corrects) a nil key equivalent, but for portability it 
might be nice to include an NSWarnLog or some sort of output to make a 
developer aware that the use of nil for a key equivalent is not portable.



Blake


Here is the current implementation of [NSMenuItem setKeyEquivalent:] 
from gnustep-gui:


- (void) setKeyEquivalent: (NSString*)aKeyEquivalent
{
  if (nil == aKeyEquivalent)
aKeyEquivalent = @"";

  ASSIGNCOPY(_keyEquivalent,  aKeyEquivalent);
  [_menu itemChanged: self];
}




___
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev





___
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev


Calling the Win32 APIs

2008-05-28 Thread Vance Grkov

Hello

I installed GNUstep on Windows and created a sample hello world window based 
application (using NSWindow, NSView, NSButton ...)

Now, how do I call Windows APIs from this GNUstep application? 

(Do I need to install the platform SDK first and will gcc work with the MS 
headers and libraries.)

I am poring a cocoa application to GNUstep on windows. I have it 95% ported and 
now I need to implement the missing functionality on windows for which I need 
the ability to call the windows APIs and I am not very sure what is the proper 
way to do this from GNUstep.

Regards!
Vance
___
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev