* Headers/AppKit/NSHelpManager.h:

* Source/NSHelpManager.m:
  added -setContextHelp:forObject: as specified in Apple docs;
  -setContextHelp:withObject: deprecated. 


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23174 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Eric Sersale 2006-07-17 12:03:15 +00:00
parent acf57e2b37
commit 06fed61392
3 changed files with 18 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2006-07-17 Enrico Sersale <enrico@fibernet.ro>
* Headers/AppKit/NSHelpManager.h:
* Source/NSHelpManager.m:
added -setContextHelp:forObject: as specified in Apple docs;
-setContextHelp:withObject: deprecated.
2006-07-16 Enrico Sersale <enrico@fibernet.ro>
* Headers/Additions/GNUstepGUI/GSHelpManagerPanel.h: added -buttonAction:

View file

@ -68,6 +68,8 @@
- (void) removeContextHelpForObject: (id)object;
- (void)setContextHelp:(NSAttributedString *)help forObject:(id)object;
- (void) setContextHelp: (NSAttributedString*) help withObject: (id) object;
- (BOOL) showContextHelpForObject: (id)object locationHint: (NSPoint) point;

View file

@ -284,6 +284,15 @@ static BOOL _gnu_contextHelpActive = NO;
NSMapRemove(contextHelpTopics, object);
}
- (void)setContextHelp:(NSAttributedString *)help forObject:(id)object
{
NSMapInsert(contextHelpTopics, object, help);
}
/**
* Deprecated ... do not use.
* Use -setContextHelp:forObject: instead.
*/
- (void) setContextHelp: (NSAttributedString*) help withObject: (id) object
{
NSMapInsert(contextHelpTopics, object, help);