mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
* 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:
parent
acf57e2b37
commit
06fed61392
3 changed files with 18 additions and 0 deletions
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue